Hadithcore
Riyad as-Salihin, 600

Abu Hurairah (May Allah be pleased with him) reported:

Messenger of Allah (ﷺ) said, "The best of people is a man who is holding his horse's rein in the way of Allah (in Jihad) and is galloping towards the place wherever he hears a call for war or detects a note of danger; he goes on proceeding, seeking martyrdom or death wherever it is expected. And a man who retires with some sheep in a mountainside or a valley. He performs Salat regularly and pays the Zakat, continues worshipping his Rubb, till death overtakes him. He does not interfere in the affairs of the people except for betterment." <b>[Muslim]</b>.

وعنه عن رسول الله صلى الله عليه وسلم أنه قال‏:‏ “من خير معاش الناس رجل ممسك عنان فرسه فى سبيل الله، يطير على متنه، كلما سمع هيعه أو فزعة، طار عليه يبتغى القتل، أو الموت مظانه، أو رجل فى غنيمة فى رأس شعفة من هذه الشعف، أو بطن واد من هذه الأودية يقيم الصلاة، ويؤتى الزكاة، ويعبد ربه حتى يأتيه اليقين، ليس من الناس إلا فى خير” ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Introduction, Hadith 600
Sharh · explanationclick to expand
<b>Guidance from the Hadith:</b><br> 1) It is good to seclude oneself from people, unless this prevents one from performing the Islamic duties in the proper way.<br> 2) A person should keep away from people whose company causes sickness in the heart, like those who are defiantly disobedient to Allah or followers of religious innovations. As for those whose company nurtures the heart, like the pious, the people of knowledge, and the followers of the Sunnah, a person should be keen to accompany them and love them.
Related hadiths3
Compare isnād across 3 related chains →