مشكوة المصابيح Mishkat al-Masabih كتاب الصلاة The Book of Prayer
(كُلَّمَا بَعُدَ ٱلْبَيْتُ عَنِ ٱلْمَسْجِدِ كَانَ ٱلثَّوَابُ أَكْثَرَ)

(The farther the house is from the mosque, the greater the reward)

1 hadith
Hadith 700
وَعَن جَابر قَالَ: خَلَتِ الْبِقَاعُ حَوْلَ الْمَسْجِدِ فَأَرَادَ بَنُو سَلِمَةَ أَنْ يَنْتَقِلُوا قُرْبَ الْمَسْجِدِ فَبَلَغَ ذَلِكَ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ لَهُمْ: «بَلَغَنِي أَنَّكُمْ تُرِيدُونَ أَنْ تَنْتَقِلُوا قُرْبَ الْمَسْجِدِ» . قَالُوا: نَعَمْ يَا رَسُولَ اللَّهِ قَدْ أَرَدْنَا ذَلِكَ. فَقَالَ: «يَا بَنِي سَلِمَةَ دِيَارَكُمْ تُكْتَبْ آثَاركُم دِيَاركُمْ تكْتب آثَاركُم» . رَوَاهُ مُسلم
Jabir said that the area round the mosque was vacant and that the Banu Salima wanted to move near the mosque, but when the Prophet heard of that he said to them, “I have heard that you want to move near the mosque.” They replied, “Yes, Messenger of God, that was our desire.” He said, “Banu Salima, if you keep to your present houses, your footprints will be recorded; if you keep to your present houses, your footprints will be recorded.”* * I.e. you will receive a reward for the distance you have to go to the mosque. Muslim transmitted it.
Hadith Reference Mishkat al-Masabih / The Book of Prayer / Hadith: 700
Hadith Grading الألبانی: صَحِيح  |  زبیر علی زئی: صحيح
Hadith Takhrij ´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «رواه مسلم (280 / 665)»