It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that a man died in the time of the Messenger of Allah (peace and blessings be upon him) and left no heir except a slave whom he had set free. The Messenger of Allah (peace and blessings be upon him) gave him his inheritance.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الفرائض / 12395