The ruling on killing an apostate woman
(Ibn Umar (may Allah be pleased with them both), al-Zuhri (may Allah have mercy on him), Ibrahim (may Allah have mercy on him)) An apostate woman is to be killed.
[Bukhari: before hadith 6922, Kitab Istitabat al-Murtaddin: Bab Hukm al-Murtadd wa al-Murtaddah wa Istitabatihim]
(The majority of scholars, Ahmad (may Allah have mercy on him), al-Shafi’i (may Allah have mercy on him)) hold the same view.
(Abu Hanifa (may Allah have mercy on him)) A woman is not to be killed but only imprisoned. His evidence is the hadith which mentions that the Prophet ﷺ forbade the killing of women during war.
[Tuhfat al-Ahwadhi: 850/4, Fath al-Bari: 284/12]
(The preferred view) An apostate woman is also to be killed.
And the women whom the Prophet ﷺ forbade killing were women who were originally disbelievers and did not take part in the war against the Muslims. As for those who become Muslim and then apostatize, they fall under the general scope of the evidences, namely:
من بدل دينه فاقتلوه
“Whoever changes his religion (whether male or female), kill him.”
Abu Bakr (may Allah be pleased with him) also killed an apostate woman during his caliphate, but no objection to it is established from any of the Companions.
[For further detail see: Tuhfat al-Ahwadhi: 850/4, al-Sayl al-Jarrar: 373/4, Fath al-Bari: 284/12, al-Rawdah al-Nadiyyah: 623/2, Nayl al-Awtar: 655/4, al-Umm lil-Shafi’i: 156/6, al-Ikhtiyar: 149/4, al-Hujjah ‘ala Ahl al-Madinah: 530/3]