Narrated Abdullah ibn Abbas: The Prophet ﷺ said: When a mukatab (a slave who has made an agreement to purchase his freedom) gifts blood-money or an inheritance, he can inherit in accordance with the extent to which he has been emancipated. Abu Dawud said: Wuhaib transmitted it from Ayyub, from Ikrimah, on the authority of Ali, from the Prophet ﷺ: and Hammad bin Zaid and Ismail have transmitted it in a mursal form (i. e the link of the Companion being missing) from Ayyub, from Ikrimah, from the Prophet ﷺ. Ismail bin 'Ulayyah has treated it as a statement of Ikrimah.
Related hadith on this topic
Explanation & Benefits
Shaykh Umar Farooq Saeedi
Benefits and Issues:
The manner in which Islam has protected the rights of slaves is unmatched by any other nation.
If a slave has become half-free and half-slave, then half of the blood money (diyah) will be paid as for a free person, and the remaining half as for a slave.
Similarly, this ruling applies to other matters as well.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 4582