Sayyidina lbn Abbas (RA) reported that the Prophet (SAW) said, When a slave who has bound himself to buy his freedom receives blood-money or an inheritance, he will inherit according to the extent he has been emancipated. The Prophet J1 also said, “As for his bloodwit, it will be paid for him (to his heirs) to the extent he has paid for his freedom the bloodwit of a free person and remainder of bloodmit for a slave (to his master).”
[Abu Dawud 4582, Nisai 4829]