The Prophet (ﷺ) passed by a dead goat and said, "There is no harm if its owners benefit from its skin."
Sahih al-Bukhari Book 72, Hadith 57