Sahih al-Bukhari, Book 34, Hadith 168 (Bukhari 2140)

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."