كتاب الحيض
3  
The Book of Menstruation
(27)
Chapter: Hides of dead animals are purified by tanning
(27)
باب طَهَارَةِ جُلُودِ الْمَيْتَةِ بِالدِّبَاغِ ‏‏
Sahih Muslim 363 a

The freed slave-girl of Maimuna was given a goat in charity but it died. The Messenger of Allah (ﷺ) happened to pass by that (carcass). Upon this be said:

Why did you not take off its skin? You could put it to use, after tanning it. They (the Companions) said: It was dead. Upon, this he (the Messenger of Allah) said: Only its eating is prohibited. Abu bakr and Ibn Umar in their narrations said: It is narrated from Maimuna (may Allah be pleased with her).
وَحَدَّثَنَا يَحْيَى بْنُ يَحْيَى، وَأَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ وَعَمْرٌو النَّاقِدُ وَابْنُ أَبِي عُمَرَ جَمِيعًا عَنِ ابْنِ عُيَيْنَةَ، قَالَ يَحْيَى أَخْبَرَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنِ الزُّهْرِيِّ، عَنْ عُبَيْدِ اللَّهِ بْنِ عَبْدِ اللَّهِ، عَنِ ابْنِ عَبَّاسٍ، قَالَ تُصُدِّقَ عَلَى مَوْلاَةٍ لِمَيْمُونَةَ بِشَاةٍ فَمَاتَتْ فَمَرَّ بِهَا رَسُولُ اللَّهِ صلى الله عليه وسلم فَقَالَ ‏"‏ هَلاَّ أَخَذْتُمْ إِهَابَهَا فَدَبَغْتُمُوهُ فَانْتَفَعْتُمْ بِهِ ‏"‏ ‏.‏ فَقَالُوا إِنَّهَا مَيْتَةٌ ‏.‏ فَقَالَ ‏"‏ إِنَّمَا حَرُمَ أَكْلُهَا ‏"‏ ‏.‏ قَالَ أَبُو بَكْرٍ وَابْنُ أَبِي عُمَرَ فِي حَدِيثِهِمَا عَنْ مَيْمُونَةَ رضى الله عنها ‏.‏
Reference : Sahih Muslim 363a
In-book reference : Book 3, Hadith 127
USC-MSA web (English) reference : Book 3, Hadith 704
  (deprecated numbering scheme)