Hadith on Mosques: More reward for walking to the Masjid

Jabir reported: A plot of land around the mosque was vacant, so the tribe of Salimah intended to move there to be closer to the mosque. The Messenger of Allah, peace and blessings be upon him, was told about that and he said to them, “I have heard that you intend to move closer to the mosque.” They said, “Yes, O Messenger of Allah, we intend to do so.” The Prophet said, “O tribe of Salimah, keep to your houses and your steps will be recorded, keep to your houses and your steps will be recorded.

Source: Ṣaḥīḥ Muslim 665

Grade: Sahih (authentic) according to Muslim

عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ قَالَ خَلَتْ الْبِقَاعُ حَوْلَ الْمَسْجِدِ فَأَرَادَ بَنُو سَلِمَةَ أَنْ يَنْتَقِلُوا إِلَى قُرْبِ الْمَسْجِدِ فَبَلَغَ ذَلِكَ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ لَهُمْ إِنَّهُ بَلَغَنِي أَنَّكُمْ تُرِيدُونَ أَنْ تَنْتَقِلُوا قُرْبَ الْمَسْجِدِ قَالُوا نَعَمْ يَا رَسُولَ اللَّهِ قَدْ أَرَدْنَا ذَلِكَ فَقَالَ يَا بَنِي سَلِمَةَ دِيَارَكُمْ تُكْتَبْ آثَارُكُمْ دِيَارَكُمْ تُكْتَبْ آثَارُكُمْ

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