كتاب الإمارة
33  
The Book on Government
(34)
Chapter: The virtue of Jihad and keeping watch over the frontier
(34)
باب فَضْلِ الْجِهَادِ وَالرِّبَاطِ ‏‏
Sahih Muslim 1888 b

It has been narrated (through a diferent chain of transmetters) on the same authority (i. e. Abu Sa'id Khadri) who said:

A man asked: Messenger of Allah, which of men is the best? He said: A believer who fights staking his life and spending his wealth in the way of Allah. He asked: Who is next to him (in excellence)? He said: Next to him is a man who lives an isolated life in a mountain gorge, worshipping his Lord and sparing men from his mischief.
حَدَّثَنَا عَبْدُ بْنُ حُمَيْدٍ، أَخْبَرَنَا عَبْدُ الرَّزَّاقِ، أَخْبَرَنَا مَعْمَرٌ، عَنِ الزُّهْرِيِّ، عَنْ عَطَاءِ، بْنِ يَزِيدَ اللَّيْثِيِّ عَنْ أَبِي سَعِيدٍ، قَالَ قَالَ رَجُلٌ أَىُّ النَّاسِ أَفْضَلُ يَا رَسُولَ اللَّهِ قَالَ ‏"‏ مُؤْمِنٌ يُجَاهِدُ بِنَفْسِهِ وَمَالِهِ فِي سَبِيلِ اللَّهِ ‏"‏ ‏.‏ قَالَ ثُمَّ مَنْ قَالَ ‏"‏ ثُمَّ رَجُلٌ مُعْتَزِلٌ فِي شِعْبٍ مِنَ الشِّعَابِ يَعْبُدُ رَبَّهُ وَيَدَعُ النَّاسَ مِنْ شَرِّهِ ‏"‏ ‏.‏
Reference : Sahih Muslim 1888b
In-book reference : Book 33, Hadith 183
USC-MSA web (English) reference : Book 20, Hadith 4653
  (deprecated numbering scheme)