Hadith on Mosques: Every step to mosque for prayer is rewarded

Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever purifies himself with ablution in his house, then he walks to a house among the houses of Allah to fulfill an obligation among the obligations of Allah, one step of his will expiate his sins and another step will raise his status.”

Source: Ṣaḥīḥ Muslim 666

Grade: Sahih (authentic) according to Muslim

عَنْ أَبِي هُرَيْرَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَنْ تَطَهَّرَ فِي بَيْتِهِ ثُمَّ مَشَى إِلَى بَيْتٍ مِنْ بُيُوتِ اللَّهِ لِيَقْضِيَ فَرِيضَةً مِنْ فَرَائِضِ اللَّهِ كَانَتْ خَطْوَتَاهُ إِحْدَاهُمَا تَحُطُّ خَطِيئَةً وَالْأُخْرَى تَرْفَعُ دَرَجَةً

666 صحيح مسلم كتاب المساجد ومواضع الصلاة باب المشي إلى الصلاة تمحى به الخطايا وترفع به الدرجات