Sahih al-Bukhari, Book 85, Hadith 38 (Bukhari 6516)

Narrated Anas bin Malik:

The Prophet (ﷺ) said, "The freed slave belongs to the people who have freed him," or said something similar.