It is narrated by Ibn 'Umar that a woman was found killed in one of these battles; so the Messenger of Allah ﷺ forbade the killing of women and children.
وُجِدَتِ امْرَأَةٌ مَقْتُولَةً فِي بَعْضِ تِلْكَ الْمَغَازِي فَنَهَى رَسُولُ اللَّهِ ﷺ عَنْ قَتْلِ النِّسَاءِ وَالصِّبْيَانِ