In my childhood, my grandparents lived 2 buildings away from the masjid. We walked to masjid for salaah.
Abu Hurairah (RA) reported:
The Prophet (Sallallahu Alaihi wasallam) said,
“He who purifies (performs Wudu’) himself in his house and then walks to one of the houses of Allah (mosque) for performing an obligatory Salat, one step of his will wipe out his sins and another step will elevate his rank (in Jannah).”
Abu Hurairah (RA reported:
The Prophet (Sallallahu Alaihi wasallam)said, “Shall I not tell you something by which Allah effaces the sins and elevates the ranks (in Jannah).” The Companions said: “Yes (please tell us), O Messenger of Allah.”
He said, “Performing the Wudu’ properly in spite of difficult circumstances, walking with more paces to the mosque, and waiting for the next Salat (prayer) after a observing Salat; and that is Ar-Ribat, and that is Ar-Ribat.” [Muslim].