Jami` at-Tirmidhi Book 17, Hadith 39
"Whoever has relations with beast, then there is no legal punishment for him."
That the Messenger of Allah (ﷺ) said: "Whomever you see having relations with an animal then kill him and kill animal." So it was said to Ibn 'Abbas: "What is the case of the animal?" He said: "I did not hear anything from the Messenger of Allah (ﷺ) about this, but I see that the Messenger of Allah (ﷺ) disliked eating its meat or using it, due to the fact that such a (heinous) thing has been done with that animal."
That the Messenger of Allah (ﷺ) said: "Whomever you find doing the actions of the people of Lut then kill the one doing it, and the one it is done to."