Burayda reported,

Whenever the Messenger of Allah ﷺ appointed a man as commander over a military expedition, he would personally counsel him to fear Allah and to treat the Muslims under his command well. He would say,"Wage war in the name of Allah and in the cause of Allah. Fight those who disbelieve in Allah. Wage war but do not act treacherously, do not steal from the spoils, do not mutilate, and do not kill children.When you meet your enemy from among the polytheists, call them to one of 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 tell them that if they do so, they will have the same rights as the Emigrants and the same obligations as the Emigrants. If they refuse, then tell them that they will be like the bedouin Muslims, with the rule of Allah that applies to the believers applying to them, but they will have no share in the spoils of war or booty unless they fight alongside the Muslims.If they refuse to enter Islam, then ask them to pay the jizya. If they do, accept it from them and refrain from fighting them. If they refuse, then seek Allah's help against them and fight them.If you besiege a fortress and they want 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. Rather, grant them your own protection and the protection of your father and the protection of your companions. For if you should violate your own protection or the protection of your fathers, it is a lesser matter than violating the protection of Allah and the protection of His Messenger.If you besiege 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. Rather, let them surrender on your own judgment, for you do not know whether you will reach the judgment of Allah concerning them or not."Alqama said, "I narrated this to Muqatil bin Hayyan, and he said, 'Muslim bin Haydam narrated to me from Numan bin Muqarin, from the Prophet ﷺ, something similar.'"

Ibn Majah 2858

Sahih

حدثنا محمد بن يحيى حدثنا محمد بن يوسف الفريابي حدثنا سفيان عن علقمة بن مرثد

عن ابن بريدة عن أبيه قال

كان رسول الله ﷺ إذا أمر رجلا على سرية أوصاه في خاصة نفسه بتقوى الله ومن معه من المسلمين خيرا فقال اغزوا باسم الله وفي سبيل الله قاتلوا من كفر بالله اغزوا ولا تغدروا ولا تغلوا ولا تمثلوا ولا تقتلوا وليدا وإذا أنت لقيت عدوك من المشركين فادعهم إلى إحدى ثلاث خلال أو خصال فأيتهن أجابوك إليها فاقبل منهم وكف عنهم ادعهم إلى الإسلام فإن أجابوك فاقبل منهم وكف عنهم ثم ادعهم إلى التحول من دارهم إلى دار المهاجرين وأخبرهم إن فعلوا ذلك أن لهم ما للمهاجرين وأن عليهم ما على المهاجرين وإن أبوا فأخبرهم أنهم يكونون كأعراب المسلمين يجري عليهم حكم الله الذي يجري على المؤمنين ولا يكون لهم في الفيء والغنيمة شيء إلا أن يجاهدوا مع المسلمين فإن هم أبوا أن يدخلوا في الإسلام فسلهم إعطاء الجزية فإن فعلوا فاقبل منهم وكف عنهم فإن هم أبوا فاستعن بالله عليهم وقاتلهم وإن حاصرت حصنا فأرادوك أن تجعل لهم ذمة الله وذمة نبيك فلا تجعل لهم ذمة الله ولا ذمة نبيك ولكن اجعل لهم ذمتك وذمة أبيك وذمة أصحابك فإنكم إن تخفروا ذمتكم وذمة آبائكم أهون عليكم من أن تخفروا ذمة الله وذمة رسوله وإن حاصرت حصنا فأرادوك أن ينزلوا على حكم الله فلا تنزلهم على حكم الله ولكن أنزلهم على حكمك فإنك لا تدري أتصيب فيهم حكم الله أم لا قال علقمة فحدثت به مقاتل بن حيان فقال حدثني مسلم بن هيضم عن النعمان بن مقرن عن النبي ﷺ مثل ذلك

ابن ماجه 2858صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Jihad
Chapter
Bequest of the imam
Numbering
Darussalam 2858
Ibn Majah 2858