Going to mosques and coming back from them merit reward if one does it seeking thereby the reward from Allah, the Exalted. This Hadīth mentions a man whose house was distant from the mosque. However, he used to come to the mosque for every prayer, expecting thereby a reward from Allah for his walking to the mosque and walking back to his house. Some people said to him: "If only you purchased a donkey to ride it in the darkness of the night and the heat of the day, " meaning in the dark to attend the ‘Ishā' and Fajr prayers and on very hot days, especially that the climate of Hejaz is hot. The man replied that he would not like to live right next to the mosque, and that he was pleased with living far from it because he walks many steps to the mosque and many steps back from it. If he lived closer to the mosque, all these steps would not be recorded for him (in his record of good deeds). He clarified to them that he expected the reward from Allah, the Exalted, for his walking to and back from the mosque. Thereupon, the Messenger of Allah (may Allah’s peace and blessings be upon him) said to him: "Allah has gathered all that for you", meaning: Allah has fulfilled your wish of having your steps to and from the mosque recorded for you. According to another narration, the Prophet (may Allah's peace and blessings be upon him) said to the man: "Indeed, you will have the reward that you expected."