The Statement of Allah: "...Come not near to Al-Fawahish (shameful sins, illegal sexual intercourse), whether committed openly or secretly..." (V.6:151)
Narrated Abu Wail:`Abdullah (bin Mas`ud) said, "None has more sense of ghaira than Allah therefore - He prohibits shameful sins (illegal sexual intercourse, etc.) whether committed openly or secretly. And none loves to be praised more than Allah does, and for this reason He praises Himself." I asked Abu Wali, "Did you hear it from `Abdullah?" He said, "Yes," I said, "Did `Abdullah ascribe it to Allah's Messenger (ﷺ)?" He said, "Yes."
Reference
Sahih al-Bukhari 4634
In-book reference
Book 65, Hadith 156
USC-MSA web (English)
Vol. 6, Book 60, Hadith 158
Translation by Dr. M. Muhsin Khan · Language: EN
Sahih
Arabic Text
حَدَّثَنَا حَفْصُ بْنُ عُمَرَ، حَدَّثَنَا شُعْبَةُ، عَنْ عَمْرٍو، عَنْ أَبِي وَائِلٍ، عَنْ عَبْدِ اللَّهِ ـ رضى الله عنه ـ قَالَ " لاَ أَحَدَ أَغْيَرُ مِنَ اللَّهِ، وَلِذَلِكَ حَرَّمَ الْفَوَاحِشَ مَا ظَهَرَ مِنْهَا وَمَا بَطَنَ، وَلاَ شَىْءَ أَحَبُّ إِلَيْهِ الْمَدْحُ مِنَ اللَّهِ، لِذَلِكَ مَدَحَ نَفْسَهُ ". قُلْتُ سَمِعْتَهُ مِنْ عَبْدِ اللَّهِ قَالَ نَعَمْ. قُلْتُ وَرَفَعَهُ قَالَ نَعَمْ.