It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that when the Messenger of Allah (peace and blessings be upon him) sent out his armies, he would say: "Do not kill the worshippers in the hermitages." It is also narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that when the Messenger of Allah (peace and blessings be upon him) sent out his armies, he would give these instructions: "Go out in the name of Allah. Fight in the path of Allah against those who disbelieve in Allah. Beware! Do not break your covenants, do not steal from the spoils of war, do not mutilate the bodies of the slain, and do not kill children or the worshippers living in hermitages." This hadith was also recorded by Abu Ya'la al-Mawsili and Ahmad bin Hanbal (may Allah have mercy on them both) through different chains; all these chains revolve around Ibrahim bin Isma'il bin Abi Habibah, and he is a da'if (weak) narrator.
Hadith Takhrij«مدار هذه الطرق على إبراهيم بن إسماعيل بن أبي حبيبة، وهو ضعيف» «(4455/1) أخرجه سنن الترمذي برقم: 1549، وأخرجه مصنف ابن أبي شيبة برقم: 21، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 9659، 10356، وأخرجه شرح معاني الآثار برقم: 5185» «(4455/2) أخرجه مسند أحمد برقم: 2723، وأخرجه المعجم الكبير للطبراني برقم: 11562، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 9611، وأخرجه شرح معاني الآثار برقم: 5155، وأخرجه شرح مشكل الآثار برقم: 6135، وأخرجه السنن الصغير للبيهقي برقم: 3566»