(50) باب فَضْلِ كَثْرَةِ الْخُطَا إِلَى الْمَسَاجِدِ
Jabir b. Abdullah reported that Banu Salama decided to shift near the mosque (as there were) some plots vacant. This (news) reached the Messenger of Allah (ﷺ), whereupon he said:
O people of the Salama tribe, you better stay in your houses (where you are living), for your footsteps are recorded They said. We could not be more delighted even by shifting (near the mosque) as we were delighted (on hearing these words from the Messenger of Allah (ﷺ).
Reference: Sahih Muslim 665 b
In-book reference: Book 5, Hadith 356
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1408