The Messenger of Allah ﷺ said, "Whoever frees a slave who possesses wealth, the slave's wealth belongs to him, unless the master stipulates that the wealth be his, in which case it belongs to the master."
قال رسول الله ﷺ: من أعتق عبدا وله مال، فمال العبد له إلا أن يشترط السيد ماله فيكون له.
Abu Dawud (3962) narrated it from the hadith of Abdullah bin Wahb, who said, Ibn Lahia and Layth bin Saad told me, from Ubaydullah bin Abu Jafar, from Bukayr bin Ashaj, from Nafi, from Ibn Umar, and he related it. Ibn Majah (2529) also narrated it, through the route of Ibn Wahb from Ibn Lahia, and through the route of Saeed bin Abu Maryam from Layth, both of them from Ubaydullah bin Abu Jafar, with the same wording.Ibn Lahia has well known criticism against him, but the narration of the Abadila (those named Abdullah, among them Abdullah bin Wahb) from him is more reliable than that of others, and moreover his narration is corroborated by another. As for Ubaydullah bin Abu Jafar the Egyptian, Abu Hatim, Nasai, and others said he was trustworthy, and Ibn Yunus said, "He was a scholar, an ascetic, and a devoted worshiper."Imam Ahmad's statement about him varies, for it was related from him that he said, "He is not strong," while Abdullah bin Ahmad related from his father that he said, "There is no harm in him, he used to study jurisprudence." This second statement agrees with the view of the majority, and indeed the two sheikhs (Bukhari and Muslim) relied on him as evidence.