Sayyiduna Anas bin Malik (may Allah be pleased with him) says that Banu Salimah intended to move from their distant homes and come close to the mosque. The Prophet (peace and blessings be upon him) disliked that you should vacate these houses, and he (peace and blessings be upon him) said: "O Banu Salimah! Do you not want the reward of your footsteps?" They said: "Of course," and so they stayed where they were.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 4980