Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both) says that Banu Salimah wanted to move close to the mosque, and the land there was vacant. This reached the Prophet (peace and blessings be upon him), so he (peace and blessings be upon him) said: "O Banu Salimah! Keep to your homes; your footsteps will be recorded." So they stayed there and said: It would not have pleased us to have moved our homes.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 4981