When the slave of a disbeliever becomes Muslim, he becomes free
➊ It is narrated from Ali (may Allah be pleased with him) that before the Treaty of Hudaybiyyah some slaves ran away and came to the Messenger of Allah ﷺ. Their masters wrote to him ﷺ: “By Allah, O Muhammad! They have not come to you out of religious inclination towards you, but have come to escape slavery.” Some people said: “O Messenger of Allah! They have spoken the truth, send them back to them.” At this the Messenger of Allah ﷺ became angry and said: “O company of Quraysh! I do not think you will desist until Allah the Exalted sends against you people who will strike your necks.” And he ﷺ refused to return them, saying:
هم عتقاء الله عز و جل
“These are all those freed by Allah the Exalted.”
[Sahih: Sahih Abi Dawud: 2349, Kitab al-Jihad: Chapter on the slaves of the polytheists who join the Muslims and then accept Islam, Abu Dawud: 2700, Tirmidhi: 3715, Hakim: 125/2, Bayhaqi: 229/9, Ahmad: 155/1]
It is established that if any slave of the disbelievers becomes Muslim, he becomes free.
➋ It is narrated from Ibn Abbas (may Allah be pleased with them both) that:
أعتق رسول الله يوم الطائف من خرج إليه من عبيد المشركين
“On the day of the expedition of Ta’if, whichever slave of the polytheists came to the Messenger of Allah ﷺ (having become Muslim), he set him free.”
[Ahmad: 123/1 – 236 – 243 – 362, Ibn Abi Shaybah: 532/6, Sharh Ma’ani al-Athar: 278/3, Bayhaqi: 229/9]
➌ Imam al-Sha’bi (may Allah have mercy on him) narrates from a man of Banu Thaqif that he said: We asked the Messenger of Allah ﷺ for the return of Abu Bakrah, who was our slave, but he had become Muslim before us. So he ﷺ said:
لا هـو طـليـق الله ثم طليق رسوله
“No, he is the one freed by Allah the Exalted, and then freed by His Messenger.”
[Ahmad: 167/4, Sunan Sa’id ibn Mansur: 2808, Sharh Ma’ani al-Athar: 279/3]
❀ Remember that if the master becomes Muslim before his slave, and then the slave becomes Muslim, the slave will be returned to the master. This is because the master, by accepting Islam, has secured his property, and the slave is also his property.
[Nayl al-Awtar: 80/5]
The narration in which it is stated that the Messenger of Allah ﷺ ruled concerning a slave that if he comes and becomes Muslim and then his master becomes Muslim, he will be free, but if the master comes first and becomes Muslim and the slave comes later and becomes Muslim, he will remain a slave, is mursal.
[Ibn Abi Shaybah: 532/5, 33596, Sunan Sa’id ibn Mansur: 290/2, Nayl al-Awtar: 80/5, al-Rawdah al-Nadiyyah: 755/2]