Layth said that al-Hakam said: "Whoever has intercourse with an animal, the prescribed punishment (hadd) is to be established upon him."