Emancipating a Slave who is jointly owned, buying a relative, and emancipating during an illness - Section 2 Mishkat al-Masabih 3393
Arabic hadith text
عَن الْحسن عَن سَمُرَة عَنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «من ملك ذَا رحم محرم فَهُوَ حُرٌّ» . رَوَاهُ التِّرْمِذِيُّ وَأَبُو دَاوُدَ وَابْنُ مَاجَه
Translation
Al-Hasan, on Samura’s authority, reported God's Messenger as saying, “If anyone gets possession of a relative who is within the prohibited degrees, that person becomes free.” Tirmidhi, Abu Dawud and Ibn Majah transmitted it.