(50) باب فَضْلِ كَثْرَةِ الْخُطَا إِلَى الْمَسَاجِدِ
Jabir b. 'Abdullah narrated:
Our houses were situated far away from the mosque; we, therefore, decided to sell our houses so that we may be able to come near the mosque. The Messenger of Allah (ﷺ) forbade us (to do so) and said: There is for every step (towards the mosque) a degree (of reward) for you.
Reference: Sahih Muslim 664
In-book reference: Book 5, Hadith 354
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1406