The Prophet ﷺ said, "Shall I inform you of the best of your deeds, the most pleasing to your Sovereign, the highest in raising your ranks, and better for you than giving gold and silver, and better than meeting your enemy and striking their necks while they strike yours?"They asked, "What is that, Messenger of Allah?"He replied, "The remembrance of Allah."Muaz bin Jabal said, "No deed a person performs is more effective in saving him from the punishment of Allah than the remembrance of Allah."
حدثنا يعقوب بن حميد بن كاسب حدثنا المغيرة بن عبد الرحمن عن عبد الله بن سعيد بن أبي هند عن زياد بن أبي زياد مولى ابن عياش عن أبي بحرية
أن النبي ﷺ قال ألا أنبئكم بخير أعمالكم وأرضاها عند مليككم وأرفعها في درجاتكم وخير لكم من إعطاء الذهب والورق ومن أن تلقوا عدوكم فتضربوا أعناقهم ويضربوا أعناقكم قالوا وما ذاك يا رسول الله قال ذكر الله وقال معاذ بن جبل ما عمل امرؤ بعمل أنجى له من عذاب الله عز وجل من ذكر الله
[Its isnad is hasan]Reference: Tirmidhi narrated it in the Book of Supplications, in a chapter within it on the one who remembers Allah much being better than the fighter in the path of Allah, hadith no. 3377, from the hadith of Abdullah bin Saeed, with the same wording, and he mentioned additional words.