Abu Saeed Khudri reported,

A man came to the Prophet ﷺ and asked, "Which of the people is the best?"He replied, "A man who strives in the cause of Allah with his life and his wealth."The man asked, "Then who?"He said, "Then a man secluded in a mountain pass, worshipping Allah عز وجل and sparing people from his harm."

Ibn Majah 3978

Sahih

حدثنا هشام بن عمار حدثنا يحيى بن حمزة حدثنا الزبيدي حدثني الزهري عن عطاء بن يزيد الليثي

عن أبي سعيد الخدري

أن رجلا أتى النبي ﷺ فقال أي الناس أفضل قال رجل مجاهد في سبيل الله بنفسه وماله قال ثم من قال ثم امرؤ في شعب من الشعاب يعبد الله عز وجل ويدع الناس من شره

ابن ماجه 3978صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Tribulations
Chapter
Seclusion
Numbering
Darussalam 3978
Ibn Majah 3978