Abu Sa'id Al-Khudri (May Allah be pleased with him) reported:
Someone asked Messenger of Allah (ﷺ): "Who is the best man?" He (ﷺ) answered, "A believer who strives in the Cause of Allah with his life and his wealth." The man asked: "Who is the next?" He said, "One who retires into a narrow valley and worships his Rubb."Another narration is: Messenger of Allah (ﷺ) said, "One who fears Allah and safeguards people against his own mischief."[Al-Bukhari and Muslim].
Arabic/English book reference: Book 1, Hadith 598