Sunan Ibn Majah, Book 36, Hadith 53 (Ibn Majah 3981)

It was narrated from Abu Sa’eed Al-Khudri that a man came to the Prophet (ﷺ) and said:

“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.”