The Messenger of Allah ﷺ was asked, "Which deed is best?"He replied, "Faith in Allah and His Messenger."He was asked, "Then what?"He said, "Jihad in the path of Allah."He was asked, "Then what?"He said, "An accepted pilgrimage."
أن رسول الله ﷺ سئل: أي العمل أفضل؟ فقال: إيمان بالله ورسوله. قيل: ثم ماذا؟ قال: الجهاد في سبيل الله. قيل: ثم ماذا؟ قال: حج مبرور.
Bukhari narrated it in the Book of Faith (26), and Muslim in the Book of Faith (83), both from the hadith of Ibrahim bin Saad, who said, "Ibn Shihab narrated to us, from Saeed bin Musayab, from Abu Hurairah," and he related it.