The Prophet ﷺ said, "Whoever walks to a prescribed prayer in a state of purity has a reward like that of a pilgrim in the state of ihram. Whoever walks to the forenoon prayer has a reward like that of one performing umrah. And a prayer following another prayer with no idle talk between them is recorded in Illiyyun."Abu Umama said, "Going out morning and evening to these mosques is part of striving in the path of Allah."
حدثنا أبو اليمان حدثنا إسماعيل بن عياش عن يحيى بن الحارث عن القاسم أبي عبد الرحمن
عن النبي ﷺ قال من مشى إلى صلاة مكتوبة وهو متطهر كان له كأجر الحاج المحرم ومن مشى إلى سبحة الضحى كان له كأجر المعتمر وصلاة على إثر صلاة لا لغو بينهما كتاب في عليين وقال أبو أمامة الغدو والرواح إلى هذه المساجد من الجهاد في سبيل الله
Its isnad is sahih. Yahya bin Harith Dhimari is trustworthy, his hadith appears in the Sunan, and he was one of the Quran reciters of Sham. The hadith was narrated by Tabarani in Al-Kabir, 2/207, no. 7734, and by Bayhaqi, 3/49, in the chapter on prayer.