The Messenger of Allah ﷺ said, "Cursed is the one who curses his father. Cursed is the one who curses his mother. Cursed is the one who slaughters for other than Allah. Cursed is the one who alters the boundary markers of the land. Cursed is the one who misleads a blind person from the road. Cursed is the one who has intercourse with an animal. Cursed is the one who does the deed of the people of Lut."In another narration, the Messenger of Allah ﷺ repeated the curse upon those who commit the act of the people of Lut three times.
قال رسول الله ﷺ: ملعون من سب آباه، ملعون من سب أمه، ملعون من ذبح لغير الله، ملعون من غير تخوم الأرض، ملعون من كمة أعمى عن الطريق، ملعون من وقع على بهيمة، ملعون من عمل عمل قوم لوط. وفي رواية: قالها رسول الله ﷺ مرارا ثلاثا في اللوطية.
Ahmad (1875, 2913, 2914, 2915), Tabarani in Al-Kabir (4/356), and Kharaiti in Masawi al-Akhlaq (75) all narrated it through the hadith of Amr bin Abu Amr, the freedman of Muttalib, from Ikrima, from Ibn Abbas, who said, then he mentioned it. Hakim said, "Its isnad is sahih." Its isnad is hasan because of Amr bin Abu Amr, for the scholars have differed regarding him between affirming his reliability and weakening him, and the summary regarding him is that his hadith is hasan when it has a basis, and this is one of those cases.