Sahih al-Bukhari, Book 56, Hadith 224 (Bukhari 2893)

Narrated Ibn `Umar:

During some of the Ghazawat of Allah's Messenger (ﷺ) a woman was found killed, so Allah's Messenger (ﷺ) forbade the killing of women and children.