Riyad as-Salihin #136 · The Book of Miscellany

Riyad as-SalihinJabir ibn Abdullah
Riyad as-Salihin · Book 1 · The Book of Miscellany
Riyad as-Salihin · كتاب 1 · كتاب المقدمات
The tribe Banu Salimah wanted to move nearer to the mosque. On learning this Messenger of Allah (صلى الله عليه وسلم) said to them, "I heard that you intend to move nearer to the mosque". They said, "That is so, O Messenger of Allah, we do want to do that". He said, "O Banu Salimah, keep to your homes, your steps (to the mosque) are recorded". [Muslim] . Another narration says: "There is for every step (towards the mosque) a degree (of reward) for you". [Muslim] .
العشرون: عنه قال: أراد بنو سلمة أن ينقلوا قرب المسجد فبلغ ذلك رسول الله صلى الله عليه وسلم، فقال لهم:
" إنه قد بلغني أنكم تريدون أن تنتقلوا قرب المسجد؟" فقالوا: نعم يارسول الله قد أردنا ذلك، فقال:"بني سلمة دياركم؛ تكتب آثاركم ، دياركم، تكتب آثاركم" ((رواه مسلم)).
Reference : Riyad as-Salihin 136In-book reference : Book 1, Hadith 136