The Prophet (ﷺ) forbade the selling of the Wala' (of slaves) or giving it as a present.

Sahih al-Bukhari Book 85 Hadith 33

Sahih al-Bukhari #6756

Laws of Inheritance (Al-Faraa'id) 85:33

Narrated Ibn `Umar:

The Prophet (ﷺ) forbade the selling of the Wala' (of slaves) or giving it as a present.

Chapter: The sin of the freed slave who denies his master who has freed him.

Grade: Sahih