Maaz reported,

The Prophet ﷺ was asked which deeds are best. He replied, "Faith in Allah alone, then jihad, then an accepted pilgrimage which surpasses all other deeds by as much as the distance between the rising and setting of the sun."

Azami 4729

Sahih

عن ماعز

عن النبي ﷺ أنه سئل أي الأعمال أفضل؟ قال: إيمان بالله وحده، ثم الجهاد، ثم حجة برة تفضل سائر العمل كما بين مطلع الشمس إلى مغربها.

الأعظمي 4729صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
Obligation of Hajj, its virtue, and its conditions
Section
Virtue of Hajj
Numbering
Jami al-Kamil 4729 (2nd edition)
Azami 4729