Ibn ‘Abbas reported God’s Messenger as saying, “If anyone has sexual intercourse with an animal, kill him and kill it along with him.” Ibn ‘Abbas was asked what offence could be attributed to the animal and replied, “I did not hear anything about that from God’s Messenger, but I think he disapproved of its flesh being eaten or of any use being made of it when such a thing had been done to it.”
‘Ikrima reported on the authority of Ibn ‘Abbas that God’s Messenger said, “If you find anyone doing as Lot’s people did, kill the one who does it and the one to whom it is done.”
Sa'id b. Sa'd b. ‘Ubada told that Sa'd b. ‘Ubada brought the Prophet a man deficient in build and sick, a member of the clan, who had been found in the act of having illicit intercourse with a slave woman of theirs. The Prophet said, “Get for him a stalk of the raceme of a palm-tree with a hundred twigs and strike him once.”
It is transmitted in Sharh as-sunna; and there is something similar in Ibn Majah’s version.