Burayda bin Husayb reported,

Whenever the Messenger of Allah ﷺ appointed a commander over an army or expedition, he would personally counsel him to fear Allah and to treat the Muslims with him well. Then he would say, "Set out in the name of Allah, in the cause of Allah. Fight those who disbelieve in Allah. Go forth, but do not steal from the spoils, do not break covenants, do not mutilate the dead, and do not kill a child.When you meet your enemy from among the polytheists, call them to three options. Whichever of them they accept, accept it from them and refrain from fighting them.First, call them to Islam. If they accept, accept it from them and refrain from fighting them. Then call them to relocate from their land to the land of the Muhajirin, and inform them that if they do so, they will have the same rights as the Muhajirin and the same obligations as the Muhajirin. If they refuse to relocate, inform them that they will be like the bedouin Muslims, 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 wage jihad 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 want you to grant them the covenant of Allah and the covenant of His Prophet, do not grant them the covenant of Allah nor the covenant of His Prophet, but grant them your own covenant and the covenant of your companions. For it is a lesser matter for you to break your covenants and the covenants of your companions than to break the covenant of Allah and the covenant of 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 judgment, for you do not know whether you will arrive at Allah's judgment regarding them or not."

Azami 7853

Sahih

عن بريدة بن الحصيب قال

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

الأعظمي 7853صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Rulings on jihad and its etiquette
Section
Calling to Islam before fighting
Numbering
Jami al-Kamil 7853 (2nd edition)
Azami 7853