It is narrated from Sayyidah Umm Salamah (may Allah be pleased with her) that she said: "We had a goat which we used to milk, and it died. The Messenger of Allah (peace and blessings be upon him) asked about it: 'O Umm Salamah, what happened to your goat?' She said: 'It died, so we threw it away.' He (peace and blessings be upon him) said: 'Why did you not benefit from its hide?' She says that it was said: 'O Messenger of Allah, it is a dead animal (maytah).' He (peace and blessings be upon him) said: 'Indeed, tanning it makes it lawful in the same way that vinegar makes wine lawful (by transforming it).'" Faraj (may Allah have mercy on him) said in explanation of this that it means that when wine changes its state and becomes vinegar, it becomes lawful.
All the narrators of the chain of this hadith are thiqah (trustworthy).