The Prophet disapproved of killing women and children during some of his military campaigns. During one campaign, a woman was found killed. The Prophet did not condone the killing of this woman according to this hadith from Sahih Bukhari.
Prophet disapproved killing women and children in war
1.
2. Narrated By ‘Abdullah : During some of the
Ghazawat of the Prophet a woman was found
killed. Allah’s Apostle disapproved the killing
of women and children
(Sahih Bukhari Volume 004, Book 052, Hadith Number 257)