Abdullah bin 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.
Hadith Referenceسنن ابي داود / كتاب العتق / 3962
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:إسناده صحيح، صحيح بخاري (2379), مشكوة المصابيح (3396، 3405), وأخرجه ابن ماجه (2529 وسنده صحيح)
1؎: That is, at the time of emancipation, if he says that this wealth is also yours, I will indeed give it to you, then in this case this wealth will belong to the slave. That is, «يشترطه» means «يعطيه». Another translation of this is: "Thus, the slave's wealth will belong to him, except if the master stipulates (that the wealth will be mine)."
´It was narrated from Ibn`Umar that the Messenger of Allah (ﷺ) said:` “Whoever frees a slave who has some wealth, the slave's wealth belongs to him, unless the master stipulates that it will belong to him.”
Maulana Ataullah Sajid
Benefits and Issues:
➊ Generally, the wealth that is in the possession of a slave is actually the property of the master, which the master gives him in connection with the fulfillment of his duties. In this case, when the slave is freed, the wealth that was in his possession will be taken by the owner.
➋ Sometimes it may happen that the master gives the slave permission to work and earn wages, stipulating that the slave should give a certain amount to the master from what he earns, and the rest he may use as he wishes. In this case, the savings accumulated by the slave become his own property. And if the slave is freed, he will keep this amount with himself and will not return it to the master.
➌ If, at the time of death, the master says, “I free you on the condition that you give me the wealth that is in your possession,” then it will have to be paid.
Source: Commentary on Sunan Ibn Mājah by Mawlānā ‘Atā’ullāh Sājid, Page: 2529