The Messenger of Allah ﷺ said, "Whoever leaves his home heading to the mosque has ten good deeds recorded for him with every step he takes. The one who sits in the mosque waiting for the prayer is like one standing in devout worship, and he is counted among those who are praying until he returns to his home."
حدثنا حسن حدثنا ابن لهيعة حدثنا أبو قبيل عن أبي عشانة المعافري
قال رسول الله ﷺ من خرج من بيته إلى المسجد كتب له بكل خطوة يخطوها عشر حسنات والقاعد في المسجد ينتظر الصلاة كالقانت ويكتب من المصلين حتى يرجع إلى بيته