Sunan Ibn Majah, Volume 4, Book 24, Hadith 2842 (DarusSalam)

It was narrated that Hanzalah Al-Katib said: “We went out to fight alongside the Messenger of Allah, and we passed by a slain woman whom the people had gathered around. They parted (to let the Prophet through) and he said: ‘This (woman) was not one of those who were fighting.’ Then he said to a man: ‘Go to Khalid bin Walid and tell him that the Messenger of Allah commands you: “Do not kill any women or any (farm) laborer.’”

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا وَكِيعٌ، عَنْ سُفْيَانَ، عَنْ أَبِي الزِّنَادِ، عَنِ الْمُرَقَّعِ بْنِ عَبْدِ اللَّهِ بْنِ صَيْفِيٍّ، عَنْ حَنْظَلَةَ الْكَاتِبِ، قَالَ غَزَوْنَا مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم فَمَرَرْنَا عَلَى امْرَأَةٍ مَقْتُولَةٍ قَدِ اجْتَمَعَ عَلَيْهَا النَّاسُ فَأَفْرَجُوا لَهُ فَقَالَ ‏(‏مَا كَانَتْ هَذِهِ تُقَاتِلُ فِيمَنْ يُقَاتِلُ‏)‏ ‏.‏ ثُمَّ قَالَ لِرَجُلٍ ‏(‏انْطَلِقْ إِلَى خَالِدِ بْنِ الْوَلِيدِ فَقُلْ لَهُ إِنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم يَأْمُرُكَ يَقُولُ لاَ تَقْتُلَنَّ ذُرِّيَّةً وَلاَ عَسِيفًا‏)‏‏.‏

sunnah.com