It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Whoever commits bestiality with an animal, kill him and kill the animal as well; and whoever commits sodomy with a man, kill him too." Meaning: the act of the people of Lut.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11519