Ibn ‘Abbas and Abu Huraira reported God’s Messenger as saying, “Accursed is he who does what Lot's people did."
In a version by him on the authority of Ibn ‘Abbas it says that ‘Ali had the two people concerned burned and that Abu Bakr had a wall thrown down on them.
He reported him as saying, “There is no prescribed punishment for one who has intercourse with an animal."
Tirmidhi and Abu Dawud transmitted it. Tirmidhi quoted Sufyan ath-Thauri as saying that this is sounder than the first tradition, “Kill him who has intercourse with an animal," (Cf. p. 763) and that the learned act according to this one.
‘Amr b. al-'As told that he heard God's Messenger say, “Fornication will not appear among any people without their being punished by famine, and bribery will not appear among any people without their being punished by terror.”