Mishkat al-Masabih

Ibn ‘Abbas reported God’s Messenger as saying, “God will not look at a man who has intercourse with a man or a woman through the anus.” Tirmidhi transmitted it.

وَعَنِ ابْنِ عَبَّاسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا يَنْظُرُ اللَّهُ إِلَى رَجُلٍ أَتَى رَجُلًا أَوِ امْرَأَةً فِي الدبر» . رَوَاهُ التِّرْمِذِيّ