Whenever the Messenger of Allah ﷺ appointed a commander over an army or a raiding party, he would personally instruct him to fear Allah and treat the Muslims with him well. Then he would say,"Fight in the name of Allah and in the path of Allah. Fight those who disbelieve in Allah. Wage war but do not embezzle the spoils, do not act treacherously, do not mutilate the dead, and do not kill a child.When you meet your enemy from the polytheists, call them to three options. Whichever of them they accept, accept it from them and refrain from fighting them.Call them to Islam. If they accept, accept it from them and refrain from fighting them. Then call them to move from their land to the land of the Emigrants, and inform them that if they do so, they will have the same rights as the Emigrants and the same duties as the Emigrants. If they refuse to move from it, inform them that they will be like the Muslim bedouins, subject to the ruling of Allah that applies to the believers, but they will have no share in the spoils of war or the fay unless they fight alongside the Muslims.If they refuse, then ask them for the jizyah. If they accept, accept it from them and refrain from fighting them. If they refuse, then seek Allah's help and fight them.When you besiege the people of a fortress and they wish you to grant them the protection of Allah and the protection of His Prophet, do not grant them the protection of Allah or the protection of His Prophet, but grant them your own protection and the protection of your companions. For if you violate your own protection and that of your companions, it is a lesser matter than violating the protection of Allah and His Messenger.When you besiege the people of a fortress and they want you to let them surrender on the judgment of Allah, do not let them surrender on the judgment of Allah, but let them surrender on your own judgment, for you do not know whether you will strike upon Allah's judgment regarding them or not."Abdul-Rahman said this or something similar.Ishaq added at the end of his narration from Yahya bin Adam, "I mentioned this hadith to Muqatil bin Hayyan."Yahya meant that Alqama said this to Ibn Hayyan, who replied, "Muslim bin Haysam narrated to me from Numan bin Muqarin, from the Prophet ﷺ, something similar."
و حدثني عبد الله بن هاشم واللفظ له حدثني عبد الرحمن يعني ابن مهدي حدثنا سفيان عن علقمة بن مرثد
كان رسول الله ﷺ إذا أمر أميرا على جيش أو سرية أوصاه في خاصته بتقوى الله ومن معه من المسلمين خيرا ثم قال اغزوا باسم الله في سبيل الله قاتلوا من كفر بالله اغزوا ولا تغلوا ولا تغدروا ولا تمثلوا ولا تقتلوا وليدا وإذا لقيت عدوك من المشركين فادعهم إلى ثلاث خصال أو خلال فأيتهن ما أجابوك فاقبل منهم وكف عنهم ثم ادعهم إلى الإسلام فإن أجابوك فاقبل منهم وكف عنهم ثم ادعهم إلى التحول من دارهم إلى دار المهاجرين وأخبرهم أنهم إن فعلوا ذلك فلهم ما للمهاجرين وعليهم ما على المهاجرين فإن أبوا أن يتحولوا منها فأخبرهم أنهم يكونون كأعراب المسلمين يجري عليهم حكم الله الذي يجري على المؤمنين ولا يكون لهم في الغنيمة والفيء شيء إلا أن يجاهدوا مع المسلمين فإن هم أبوا فسلهم الجزية فإن هم أجابوك فاقبل منهم وكف عنهم فإن هم أبوا فاستعن بالله وقاتلهم وإذا حاصرت أهل حصن فأرادوك أن تجعل لهم ذمة الله وذمة نبيه فلا تجعل لهم ذمة الله ولا ذمة نبيه ولكن اجعل لهم ذمتك وذمة أصحابك فإنكم أن تخفروا ذممكم وذمم أصحابكم أهون من أن تخفروا ذمة الله وذمة رسوله وإذا حاصرت أهل حصن فأرادوك أن تنزلهم على حكم الله فلا تنزلهم على حكم الله ولكن أنزلهم على حكمك فإنك لا تدري أتصيب حكم الله فيهم أم لا قال عبد الرحمن هذا أو نحوه وزاد إسحق في آخر حديثه عن يحيى بن آدم قال فذكرت هذا الحديث لمقاتل بن حيان قال يحيى يعني أن علقمة يقوله لابن حيان فقال حدثني مسلم بن هيصم عن النعمان بن مقرن عن النبي ﷺ نحوه