Sunan Ibn Majah – Hadith No : 2846

It wasnarrated that Ibn ‘Abbas said: “A man died at the time of theMessenger of Allah (ﷺ), and he left no heir except for a slave whomhe had set free. The Messenger of Allah (ﷺ) gave the legacy tohim.”

Hadith In Arabic Text :

حدثنا إسماعيل بن موسى، حدثنا سفيان بن عيينة، عن عمرو بن دينار، عن عوسجة، عن ابن عباس، قال مات رجل على عهد رسول الله صلى الله عليه وسلم ولم يدع له وارثا إلا عبدا هو أعتقه فدفع النبي صلى الله عليه وسلم ميراثه إليه ‏.‏

Chapter : Chapters on Shares of Inheritance – كتاب الفرائض