عَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ اقْتُلُوا الْفَاعِلَ وَالْمَفْعُولَ بِهِ فِي عَمَلِ قَوْمِ لُوطٍ وَالْبَهِيمَةَ وَالْوَاقِعَ عَلَى الْبَهِيمَةِ وَمَنْ وَقَعَ عَلَى ذَاتِ مَحْرَمٍ فَاقْتُلُوهُ
It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Noble Prophet (peace and blessings be upon him) said: Kill both the active and passive participants involved in the act of the people of Lut, and also kill the animal, and whoever has intercourse with an animal, kill him as well, and whoever commits adultery with a mahram (close relative), kill him too.