كتاب النكاح
8  
Marriage
Narrated Ibn 'Abbas (RA):
Allah's Messenger (ﷺ) said: "Allah will not look at a man who has intercourse with a man or a woman through the anus." [Reported by at-Tirmidhi, an-Nasa'i and Ibn Hibban, but it was considered to be defective for being Mawquf (saying of a Companion, i.e. Ibn 'Abbas)].
وَعَنِ ابْنِ عَبَّاسٍ ‏- رَضِيَ اَللَّهُ عَنْهُمَا‏- قَالَ : قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ لَا يَنْظُرُ اَللَّهُ إِلَى رَجُلٍ أَتَى رَجُلاً أَوْ اِمْرَأَةً فِي دُبُرِهَا } رَوَاهُ اَلتِّرْمِذِيُّ , وَالنَّسَائِيُّ , وَابْنُ حِبَّانَ , وَأُعِلَّ بِالْوَقْفِ 1‏ .‏


‏1 ‏- صحيح بشواهده.‏

Sunnah.com reference : Book 8, Hadith 57
English translation : Book 8, Hadith 1024
Arabic reference : Book 8, Hadith 1014