If anyone emancipates a slave who has property, the property of the slave belongs to him except that the master makes a stipulation. (Using translation from Abū Dāʾūd 3962)
أَنَّ رَسُولَ اللهِ ﷺ قَالَ «مَنْ أَعْتَقَ عَبْدًا وَلَهُ مَالٌ فَمَالُ الْعَبْدِ لَهُ إِلَّا أَنْ يَشْتَرِطَ السَّيِّدُ فَيَكُونَ لَهُ»