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 dear to him, treats his companion with ease, and avoids corruption, his sleep and his wakefulness are all a reward for him. But as for the one who goes out to fight for boasting, showing off, and reputation, who disobeys the leader and spreads corruption in the land, he does not return even breaking even."

Abu Dawud 2515

Daif

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

عن معاذ بن جبل

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

أبو داود 2515ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Jihad
Chapter
Whoever fights seeking worldly gain
Numbering
Darussalam 2515
Abu Dawud 2515