During one of his military expeditions, the Messenger of Allah ﷺ saw a woman who had been killed. He condemned this and forbade the killing of women and children.
و حدثني عن مالك عن نافع
أن رسول الله ﷺ رأى في بعض مغازيه امرأة مقتولة فأنكر ذلك ونهى عن قتل النساء والصبيان