Sayyiduna Ibn Abbas (may Allah be pleased with them both) used to say: Wala’ (the right of inheritance from a freed slave) can neither be sold nor gifted, and Wala’ belongs to the one who set (the slave) free.
Hadith Referenceسنن دارمي / من كتاب الفرائض / 3191