IBNMAJAH 3978: from Abū Saʿīd al-Khudrī —
“Which of the people is best?” He said: “A man who strives in Jihad in the cause of Allah with himself and his wealth.” He said: “Then who?” He said: “A man in a mountain pass who worships Allah and leaves the people from his evil.”

ابن ماجة ٣٩٧٨: عن ابو سعيد الخدري —
أَنَّ رَجُلاً أَتَى النَّبِيَّ ﷺ فَقَالَ أَىُّ النَّاسِ أَفْضَلُ قَالَ رَجُلٌ مُجَاهِدٌ فِي سَبِيلِ اللَّهِ بِنَفْسِهِ وَمَالِهِ قَالَ ثُمَّ مَنْ قَالَ ثُمَّ امْرُؤٌ فِي شِعْبٍ مِنَ الشِّعَابِ يَعْبُدُ اللَّهَ ﷻ وَيَدَعُ النَّاسَ مِنْ شَرِّهِ


Sound (ʿAli Zaʾī)
Ibn Mājah > Tribulations > § Isolating oneself
hadithunlocked.com