If a person becomes the owner of his relative, that relative will be freed.
It is narrated from Samurah (may Allah be pleased with him) that the Messenger of Allah ﷺ said:
من ملك ذا رحم محرم فهو حرّ
“Whoever becomes the owner of a relative who is a mahram will be freed.”
[Sahih: Irwa al-Ghalil: 1746, Abu Dawud: 3949, Kitab al-Itq: Bab Fiman Malaka Dha Rahim Mahram, Tirmidhi: 1365, Ibn Majah: 2524, Ahmad: 15/5, Minhat al-Ma’bud: 245/1, Sharh Ma’ani al-Athar: 109/3, Bayhaqi: 289/10, Hakim: 214/2]
(Abu Hanifah, may Allah have mercy on him) Whoever becomes the owner of any mahram relative, that relative will be freed.
(Ahmad, may Allah have mercy on him) He holds the same view.
(Shafi’i, may Allah have mercy on him) Only children, father and mother will be freed; no other close relative will be freed.
(Malik, may Allah have mercy on him) Only children, father and siblings will be freed.
(Ahl al-Zahir) No one will be freed by ownership.
[Nayl: 152/4, Subul al-Salam: 1961/4, Sharh Muslim lil-Nawawi: 153/10, al-Rawdah al-Nadiyyah: 323/2, Awn al-Ma’bud: 480/10, Qafw al-Athar: 1782/5]
(The preferred view) Mere ownership alone is the cause of freedom for all relatives.
[Subul al-Salam: 1961/4]
The following hadith is also not contrary to this:
لا يجزي ولد عن والده إلا أن يجده مملوكا فيشتريه فيعتقه
“A child cannot repay his father’s right, except in the case that he finds him a slave, so he buys him and frees him.”
[Muslim: 1510, Kitab al-Itq: Bab Fadl Itq al-Walid, Tirmidhi: 1906, Abu Dawud: 5137, Ahmad: 230/2, al-Adab al-Mufrad lil-Bukhari: 10, Ibn Majah: 3659, Sharh Ma’ani al-Athar: 109/3, al-Hilyah li Abi Nu’aym: 345/6]
Because here the emphasis is on mentioning the act of freeing, and this does not contradict freedom by mere ownership.
[al-Rawdah al-Nadiyyah: 323/2]