That a woman was found killed in one of the expeditions of the Messenger of Allah ﷺ, so the Messenger of Allah ﷺ rebuked that, and he prohibited killing women and children. There are narrations on this topic from Buraidah and Rabah - and they say he was Riyah - bin Ar-Rabi', Al-Aswad bin Sari', Ibn 'Abbas, and As-Sa'b bin Jaththamah.
أَخْبَرَهُ أَنَّ امْرَأَةً وُجِدَتْ فِي بَعْضِ مَغَازِي رَسُولِ اللَّهِ ﷺ مَقْتُولَةً فَأَنْكَرَ رَسُولُ اللَّهِ ﷺ ذَلِكَ وَنَهَى عَنْ قَتْلِ النِّسَاءِ وَالصِّبْيَانِ وَفِي الْبَابِ عَنْ بُرَيْدَةَ وَرَبَاحٍ وَيُقَالُ رِيَاحُ بْنُ الرَّبِيعِ وَالأَسْوَدِ بْنِ سَرِيعٍ وَابْنِ عَبَّاسٍ وَالصَّعْبِ بْنِ جَثَّامَةَ