From Sahih Bukhari (Hadith 2221):
Narrated `Abdullah bin `Abbas: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
Reference: Bukhari 2221