Sahih Muslim
The Book of Jihad and Expedition (Kitab Al-Jihad wal-Siyar)
Book Number: 019 / Hadith Number: 4320
It is narrated by Ibn 'Umar that a woman was found killed in one of these battles; so the Messenger of Allah (may peace be upon him) forbade the killing of women and children.