It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) forbade selling the wala' (the right of inheritance from a freed slave) and giving it away as a gift.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13568