Muaz bin Jabal reported,

The Messenger of Allah ﷺ said, "Military expeditions are of two kinds. As for the one who sets out seeking the face of Allah, obeys the leader, spends what is precious to him, treats his partner with ease, and avoids corruption, his sleep and his wakefulness are all reward. But as for the one who fights for show and reputation, disobeys the leader, and spreads corruption in the land, he does not even return with what offsets his sins."

Nasai 3190

Sahih

أخبرنا عمرو بن عثمان قال حدثنا بقية عن بحير عن خالد عن أبي بحرية

عن معاذ بن جبل

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

النسائي 3190صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Jihad
Chapter
Virtue of charity in the cause of Allah عز وجل
Numbering
Darussalam 3190
Nasai 3190