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.
bayhaqi:18153

[Machine] Narrated Anas bin Malik: The Prophet ﷺ said, "March forth in the name of Allah and upon the religion of Allah's Messenger. Do not kill an elderly person, a child, a young child, or a woman. And do not exceed the bounds or withhold the spoils of war. And set things right and do good, for Allah loves those who do good."  

البيهقي:١٨١٥٣وَقَدْ رُوِيَ فِي ذَلِكَ

عَنِ النَّبِيِّ ﷺ أَخْبَرَنَا أَبُو عَلِيٍّ الرُّوذْبَارِيُّ أنبأ أَبُو بَكْرٍ مُحَمَّدُ بْنُ بَكْرٍ ثنا أَبُو دَاوُدَ ثنا عُثْمَانُ بْنُ أَبِي شَيْبَةَ ثنا يَحْيَى بْنُ آدَمَ وَعُبَيْدُ اللهِ بْنُ مُوسَى عَنْ حَسَنِ بْنِ صَالِحٍ عَنْ خَالِدِ بْنِ الْفِزْرِ حَدَّثَنِي أَنَسُ بْنُ مَالِكٍ أَنَّ رَسُولَ اللهِ ﷺ قَالَ انْطَلِقُوا بِاسْمِ اللهِ وَبِاللهِ وَعَلَى مِلَّةِ رَسُولِ اللهِ لَا تَقْتُلُوا شَيْخًا فَانِيًا وَلَا طِفْلًا وَلَا صَغِيرًا وَلَا امْرَأَةً وَلَا تَغُلُّوا وَضُمُّوا غَنَائِمَكُمْ وَأَصْلِحُوا وَأَحْسِنُوا إِنَّ اللهَ يُحِبُّ الْمُحْسِنِينَ