The Banu Salama wanted to relocate from their homes to a place near the mosque, but the Prophet ﷺ disliked that the area around Madinah be left empty. He said, "Banu Salama, will you not seek reward for your footsteps?" So they remained where they were.
حدثنا أبو موسى محمد بن المثنى حدثنا خالد بن الحارث حدثنا حميد
أرادت بنو سلمة أن يتحولوا من ديارهم إلى قرب المسجد فكره النبي ﷺ أن يعروا المدينة فقال يا بني سلمة ألا تحتسبون آثاركم فأقاموا
Bukhari narrated it in the Book of Adhan, Chapter on Reckoning the Reward for Footsteps, no. 655, 656, 1887, from the hadith of Humayd, with this wording. It has corroborating narrations in Muslim, the Book of Mosques, Chapter on the Merit of Taking Many Steps to the Mosques, no. 665, and elsewhere.