Once Allah's Messenger (ﷺ) passed by a dead sheep and said to the people, "Wouldn't you benefit by its skin?" The people replied that it was dead. The Prophet (ﷺ) said, "But its eating only is illegal."
Sahih al-Bukhari Book 34, Hadith 168