Thereafter the Messenger of Allah (ﷺ) prohibited to kill women and children.

Sunan Abu Dawud Book 15 Hadith 196

Sunan Abu Dawud #2672

Jihad (Kitab Al-Jihad) 15:196

Al Sa’b bin Jaththamah said that he asked the Apostle of Allaah(ﷺ) about the polytheists whose settlemnst were attacked at night when some of their offspring and women were smitten. The Prophet(ﷺ) “They are of them. ‘Amr bin Dinar used to say “they are regarded in the same way as their parents.”Al-Zuhri said:

Thereafter the Messenger of Allah (ﷺ) prohibited to kill women and children.

Chapter: Regarding Killing Women