It is narrated from Sayyidah Umm Salamah (may Allah be pleased with her); she said: We had a goat which we used to milk. The Messenger of Allah (peace and blessings be upon him) missed it and asked: "What happened to your goat?" They said: It died. He (peace and blessings be upon him) said: "What did you do with its hide?" They said: O Messenger of Allah, we threw it away. He (peace and blessings be upon him) said: "Why did you not benefit from it? Its tanning takes the place of its slaughter; it becomes lawful just as vinegar becomes lawful when it is made from wine."
Hadith Referenceالمعجم الكبير للطبراني / مسند النساء / 20149