Virtues of Madinah
Bukhari :: Book 3 :: Volume 30 :: Hadith 111
(The people of) Bani Salama intended to shift near the mosque (of the Prophet) but Allah's Apostle disliked to see Medina vacated and said, "O the people of Bani Salama! Don't you think that you will be rewarded for your footsteps which you take towards the mosque?" So, they stayed at their old places.
Source materials are from the University of Southern California MSA site|
Hadith eBooks converted from Imaan Star