Emancipating a Slave who is jointly owned, buying a relative, and emancipating during an illness - Section 2 Mishkat al-Masabih 3396
Arabic hadith text
وَعَنِ ابْنِ عُمَرَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنْ أَعْتَقَ عَبْدًا وَلَهُ مَالٌ فَمَالُ الْعَبْدِ لَهُ إِلَّا أَنْ يَشْتَرِطَ السَّيِّدُ» . رَوَاهُ أَبُو دَاوُدَ وَابْنُ مَاجَهْ
Translation
Ibn ‘Umar reported God’s Messenger as saying, “If anyone emancipates a slave who owns property he gets the slave’s property, unless the master stipulates otherwise.” Abu Dawud and Ibn Majah transmitted it.