Sahih Muslim Book 9, Hadith Number 3586.

Chapter: The right of inheritance of property vests with one who emancipates the slave.

‘Aisha, the wife of Allah’s Apostle (may peace be upon him), reported: Barira came to me and said: ‘Aisha, 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 (may peace be upon him) stood up among men, extolled Allah, praised Him, and then said: “for……”