It is narrated from Sayyiduna Uqbah bin Amir al-Juhani (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Whoever goes out of his house to the mosque, ten good deeds are recorded for him for every step he takes; and the one who sits in the mosque waiting for the prayer is like the one who stands (long in prayer), and he is counted among those who pray until he returns to his house."
I say: Imam Ahmad bin Hanbal (may Allah have mercy on him) recorded it in his Musnad through al-Hasan (may Allah have mercy on him), Ibn Lahi'ah (may Allah have mercy on him) and Abu Ushshanah (may Allah have mercy on him), that he heard Sayyiduna Uqbah bin Amir (may Allah be pleased with him) narrating this from the Messenger of Allah (peace and blessings be upon him), and then he mentioned the whole hadith.
Imam Ahmad (may Allah have mercy on him) also recorded it through al-Hasan (may Allah have mercy on him), Ibn Lahi'ah (may Allah have mercy on him) and Abu Qabil (may Allah have mercy on him).
It is also narrated through Ishaq bin Isa (may Allah have mercy on him), Ibn Lahi'ah (may Allah have mercy on him) and Amr bin al-Harith (may Allah have mercy on him).
In addition, Imam Ibn Hibban (may Allah have mercy on him) recorded it in his Sahih through Abdullah bin Muhammad bin Salm (may Allah have mercy on him), Harmalah bin Yahya (may Allah have mercy on him), Ibn Wahb (may Allah have mercy on him) and Amr bin al-Harith (may Allah have mercy on him), in parts at two different places; Imam al-Tabarani (may Allah have mercy on him) also recorded it in 'al-Awsat', and Imam Ibn Khuzaymah (may Allah have mercy on him) in his Sahih.
About the words "ka-l-qanit" (like the one who stands), al-Hafiz al-Mundhiri (may Allah have mercy on him) said: The word qunut is used for several meanings, among them: keeping silent, supplicating, obedience, humility, performing Hajj repeatedly, fighting in jihad repeatedly, and standing in prayer; and in this hadith standing is what is meant. And Allah knows best.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 985
Hadith Gradingمحدثین:طرق ابن لهيعة ضعيفة، والطريق المحفوظ عن عمرو بن الحارث صحيح
Hadith Takhrij«أخرجه مسند أحمد برقم: 17005، وأخرجه شرح السنة برقم: 474»