The Messenger of Allah ﷺ was asked, "Which of the servants will hold the highest rank before Allah on the Day of Resurrection?"He replied, "Those men and women who remember Allah abundantly."I asked, "Messenger of Allah, even greater than the warrior who fights in the path of Allah?"He said, "Even if he were to strike with his sword among the disbelievers and polytheists until it broke and was stained with blood, those who remember Allah would still be higher in rank than him."
حدثنا قتيبة حدثنا ابن لهيعة عن دراج عن أبي الهيثم
أن رسول الله ﷺ سئل أي العباد أفضل درجة عند الله يوم القيامة قال الذاكرون الله كثيرا والذاكرات قلت يا رسول الله ومن الغازي في سبيل الله قال لو ضرب بسيفه في الكفار والمشركين حتى ينكسر ويختضب دما لكان الذاكرون الله أفضل منه درجة
Its chain of transmission is daif. Ahmad also narrated it in 3/75 through Ibn Lahia, with the same chain, see 2033 for the reason behind it.