Abu Saeed Khudri reported,

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."

Tirmidhi 3376

Daif

حدثنا قتيبة حدثنا ابن لهيعة عن دراج عن أبي الهيثم

عن أبي سعيد الخدري

أن رسول الله ﷺ سئل أي العباد أفضل درجة عند الله يوم القيامة قال الذاكرون الله كثيرا والذاكرات قلت يا رسول الله ومن الغازي في سبيل الله قال لو ضرب بسيفه في الكفار والمشركين حتى ينكسر ويختضب دما لكان الذاكرون الله أفضل منه درجة

الترمذي 3376ضعيف
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Supplications
Chapter
From it, regarding one who remembers Allah often being superior to the one who strives in the cause of Allah
Numbering
Darussalam 3376
Tirmidhi 3376