Sunan Abi Dawud, Book 31, Hadith 37 (Abu Dawud 3963)

'Abd Allah b. 'Umar reported the Messenger of Allah (ﷺ) as saying:

If anyone emancipates a slave who has property, the property of the slave belongs to him except that the master makes a stipulation.