The Prophet ﷺ was asked, "Which deeds are best?"He replied, "Faith without doubt, struggle in Allah's cause without dishonesty in spoils, and an accepted pilgrimage."He was asked, "Which prayer is best?"He replied, "The one with the longest standing."He was asked, "Which charity is best?"He replied, "What is given by one who has little."He was asked, "Which migration is best?"He replied, "Forsaking what Allah has forbidden you."He was asked, "Which struggle is best?"He replied, "That of one who fights the polytheists with his wealth and his life."He was asked, "Which death is most noble?"He replied, "That of the one whose blood is shed and whose horse is hamstrung beneath him."
أن النبي ﷺ سئل أي الأعمال أفضل؟ قال: إيمان لا شك فيه، وجهاد لا غلول فيه، وحجة مبرورة قيل: فأي الصلاة أفضل؟ قال: طول القنوت. قيل: فأي الصدقة أفضل؟ قال: جهد المقل. قيل: فأي الهجرة أفضل؟ قال: من هجر ما حرم الله عليه. قيل: فأي الجهاد أفضل؟ قال: من جاهد المشركين بماله ونفسه. قيل: فأي القتل أشرف؟ قال: من أهريق دمه، وعقر جواده.
Ahmad narrated it (15401), and this is his wording. Abu Dawud (1449) and Nasai (2526) also narrated it from him, all of them through the hadith of Hajjaj (he is Ibn Muhammad Masissi), who said, Ibn Jurayj said, Uthman bin Abu Sulayman narrated to me, from Ali Azdi, from Ubayd bin Umayr, from Abdullah bin Hubshi, and he related it.Its chain of transmission is hasan because of Ali Azdi, who is Ibn Abdullah Bariqi, about whom there is disagreement, though his hadith is hasan. This has already been mentioned in brief in the book on zakat.