Anas bin Malik reported,

The tribe of Banu Salama wanted to leave their homes and move closer to the mosque. When this reached the Messenger of Allah ﷺ, he disliked the idea of parts of Madinah becoming deserted, so he said, "Banu Salama, will you not seek the reward for your footsteps to the mosque?"They replied, "Of course, Messenger of Allah."So they remained in their homes.

Ahmad 12033

Sahih

حدثنا ابن أبي عدي عن حميد

عن أنس

أن بني سلمة أرادوا أن يتحولوا من منازلهم فيسكنوا قرب المسجد فبلغ ذلك رسول الله ﷺ وكره أن تعرى المدينة فقال يا بني سلمة ألا تحتسبون آثاركم إلى المسجد قالوا بلى يا رسول الله فأقاموا

أحمد 12033صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Anas bin Malik
Numbering
Darussalam 12033
Ahmad 12033