It was narrated from Ibn ‘Umar that the Prophet ﷺ saw a woman who had been killed on the road, and he forbade killing women and children. (Using translation from Ibn Mājah 2841)
أَنَّ النَّبِيَّ ﷺ رَأَى فِي بَعْضِ مَغَازِيهِ امْرَأَةً مَقْتُولَةً فَأَنْكَرَ ذَاكَ وَنَهَى عَنْ قَتْلِ النِّسَاءِ وَالصِّبْيَانِ