حَدَّثَنَا حَيْوَةُ بْنُ شُرَيْحٍ الْحَضْرَمِيُّ، حَدَّثَنَا بَقِيَّةُ، حَدَّثَنِي بَحِيرٌ، عَنْ خَالِدِ بْنِ مَعْدَانَ، عَنْ أَبِي بَحْرِيَّةَ، عَنْ مُعَاذِ بْنِ جَبَلٍ، عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم أَنَّهُ قَالَ ‏:‏ ‏"‏ الْغَزْوُ غَزْوَانِ فَأَمَّا مَنِ ابْتَغَى وَجْهَ اللَّهِ، وَأَطَاعَ الإِمَامَ، وَأَنْفَقَ الْكَرِيمَةَ، وَيَاسَرَ الشَّرِيكَ، وَاجْتَنَبَ الْفَسَادَ، فَإِنَّ نَوْمَهُ وَنَبْهَهُ أَجْرٌ كُلُّهُ وَأَمَّا مَنْ غَزَا فَخْرًا وَرِيَاءً وَسُمْعَةً، وَعَصَى الإِمَامَ، وَأَفْسَدَ فِي الأَرْضِ، فَإِنَّهُ لَمْ يَرْجِعْ بِالْكَفَافِ ‏"
Translation
Narrated Mu'adh ibn Jabal

Military expedition is of two kinds: As for the one who seeks the Face of Allah, obeys the leader, spends his precious property, treats his partner gently, and avoids mischief, then his sleep and his wakefulness are entirely a reward. And as for the one who fights out of boasting, showing off, and seeking renown, disobeys the leader, and causes mischief in the earth, he does not return with sufficiency.