The Messenger of Allah ﷺ said, "Military expeditions are of two kinds. As for the one who seeks the face of Allah, obeys the leader, spends what is precious to him, and avoids corruption, his sleep and his waking are all a reward for him. But as for the one who fights for show and reputation, disobeys the leader, and spreads corruption in the land, he does not return even break-even."
أخبرنا عمرو بن عثمان بن سعيد قال حدثنا بقية بن الوليد قال حدثنا بحير عن خالد بن معدان عن أبي بحرية
عن رسول الله ﷺ قال الغزو غزوان فأما من ابتغى وجه الله وأطاع الإمام وأنفق الكريمة واجتنب الفساد فإن نومه ونبهته أجر كله وأما من غزا رياء وسمعة وعصى الإمام وأفسد في الأرض فإنه لا يرجع بالكفاف