The Messenger of Allah ﷺ was asked which deeds are best, or which deeds are most excellent.He said, "Faith in Allah and His Messenger."He was asked, "Then what?"He said, "Jihad is the peak of all deeds."He was asked, "Then what, Messenger of Allah?"He said, "Then an accepted Hajj."
حدثنا أبو كريب حدثنا عبدة بن سليمان عن محمد بن عمرو حدثنا أبو سلمة
سئل رسول الله ﷺ أي الأعمال أفضل أو أي الأعمال خير قال إيمان بالله ورسوله قيل ثم أي شيء قال الجهاد سنام العمل قيل ثم أي شيء يا رسول الله قال ثم حج مبرور
Documentation, its chain of transmission is hasan. Ahmad narrated it, 2/287, from the hadith of Muhammad bin Amr Laythi through this route. Bukhari also narrated it, no. 26, and Muslim, no. 83, from the hadith of Abu Hurairah .