Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
abudawud:2672Aḥmad b. ʿAmr b. al-Sarḥ > Sufyān > al-Zuhrī > ʿUbaydullāh / Ibn ʿAbdullāh > Ibn ʿAbbās > al-Ṣaʿb b. Jathhāmah

Thereafter the Messenger of Allah ﷺ prohibited to kill women and children.  

أبو داود:٢٦٧٢حَدَّثَنَا أَحْمَدُ بْنُ عَمْرِو بْنِ السَّرْحِ حَدَّثَنَا سُفْيَانُ عَنِ الزُّهْرِيِّ عَنْ عُبَيْدِ اللَّهِ يَعْنِي ابْنَ عَبْدِ اللَّهِ عَنِ ابْنِ عَبَّاسٍ عَنِ الصَّعْبِ بْنِ جَثَّامَةَ

أَنَّهُ سَأَلَ النَّبِيَّ ﷺ عَنِ الدَّارِ مِنَ الْمُشْرِكِينَ يُبَيَّتُونَ فَيُصَابُ مِنْ ذَرَارِيِّهِمْ وَنِسَائِهِمْ فَقَالَ النَّبِيُّ ﷺ هُمْ مِنْهُمْ وَكَانَ عَمْرٌو يَعْنِي ابْنَ دِينَارٍ يَقُولُ هُمْ مِنْ آبَائِهِمْ قَالَ الزُّهْرِيُّ ثُمَّ نَهَى رَسُولُ اللَّهِ ﷺ بَعْدَ ذَلِكَ عَنْ قَتْلِ النِّسَاءِ وَالْوِلْدَانِ