It is narrated from Sayyiduna Ibn Mas'ud (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The one who remembers Allah among the heedless has the rank of the one who stands firm among those fleeing (from the battlefield)."
Hadith Referenceالمعجم الأوسط / باب الألف / 271
Hadith Takhrij«أخرجه البزار فى «مسنده» برقم: 1758، والطبراني فى «الكبير» برقم: 9797»