Walking to the Mosque
Ubayy bin Ka’b (radi Allahu anhu) reported: There was a man, and I do not know of any other man whose house was farther than his from the mosque, and he never missed Salat (in congregation). It was said to him (or I said to him): “If you buy a donkey you could ride it in the dark nights and in the burning sand.” He said: “I do not like my house to be by the side of the mosque, for I (eagerly) desire that my steps towards the mosque and back from it should be recorded when I return to my family.” Upon this the Messenger of Allah (sal Allahu alaihi wa sallam) said, “Allah has granted you all the rewards for you.”
Another narration says: ”You will get the reward for what you have anticipated.”
This Hadith brings into focus the fervent zeal of the Companions of the Prophet (sal Allahu alaihi wa sallam) for reward of good deeds in the Hereafter. It also tells that one gets reward for actions according to one’s intentions. If we see the matter of Salat from this angle, we find that location of mosque at a long distance from a Muslim’s house is a blessing for him.
And Allah Knows Best!