كتاب العتق
20  
The Book of Emancipating Slaves
(3)
Chapter: Al-Wala' (Right of inheritance) belongs to the one who manumits the slave
(3)
باب إِنَّمَا الْوَلاَءُ لِمَنْ أَعْتَقَ
Sahih Muslim 1504 c

'A'isha, the wife of Allah's Apostle (ﷺ), reported:

Barira came to me and said: 'A'isha, I have entered into contract for securing freedom with my family (who owns me) for nine 'uqiyas (of silver), one 'uqiya every year The rest of the hadith is the same (but with this addition):" This (the problem of the right of inheritance) should not stand in your way. Buy her, and set her free. He said in a hadith: Allah's Messenger (ﷺ) stood up among men, extolled Allah, praised Him, and then said:" for......"
حَدَّثَنِي أَبُو الطَّاهِرِ، أَخْبَرَنَا ابْنُ وَهْبٍ، أَخْبَرَنِي يُونُسُ، عَنِ ابْنِ شِهَابٍ، عَنْ عُرْوَةَ، بْنِ الزُّبَيْرِ عَنْ عَائِشَةَ، زَوْجِ النَّبِيِّ صلى الله عليه وسلم أَنَّهَا قَالَتْ جَاءَتْ بَرِيرَةُ إِلَىَّ فَقَالَتْ يَا عَائِشَةُ إِنِّي كَاتَبْتُ أَهْلِي عَلَى تِسْعِ أَوَاقٍ فِي كُلِّ عَامٍ أُوقِيَّةٌ ‏.‏ بِمَعْنَى حَدِيثِ اللَّيْثِ وَزَادَ فَقَالَ ‏"‏ لاَ يَمْنَعُكِ ذَلِكِ مِنْهَا ابْتَاعِي وَأَعْتِقِي ‏"‏ ‏.‏ وَقَالَ فِي الْحَدِيثِ ثُمَّ قَامَ رَسُولُ اللَّهِ صلى الله عليه وسلم فِي النَّاسِ فَحَمِدَ اللَّهَ وَأَثْنَى عَلَيْهِ ثُمَّ قَالَ ‏"‏ أَمَّا بَعْدُ ‏"‏ ‏.‏
Reference : Sahih Muslim 1504c
In-book reference : Book 20, Hadith 9
USC-MSA web (English) reference : Book 9, Hadith 3586
  (deprecated numbering scheme)