Hadithcore
Riyad as-Salihin, 137

Ubayy bin Ka'b (May Allah be pleased with him) 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 Messenger of Allah (ﷺ) said, "Allah has granted you all the rewards for you". <b>[Muslim]</b>. Another narration says: "You will get the reward for what you have anticipated".

الحادي والعشرون‏:‏ عن أبي المنذر أبي بن كعب رضي الله عنه قال‏:‏ كان رجل لا أعلم رجلاً أبعد من المسجد منه، وكان لا تخطئه صلاة فقيل له، أو فقلت له‏:‏ لو اشتريت حماراً تركبه في الظلماء، وفي الرمضاء، فقال‏:‏ ما يسرني أن منزلي إلى جنب المسجد، إني أريد أن يكتب لي ممشاي إلى المسجد، ورجوعي إذا رجعت إلى أهلي، فقال رسول الله صلى الله عليه وسلم‏:‏ ‏

‏قد جمع الله لك ذلك كله‏

‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Introduction, Hadith 137
Sharh · explanationclick to expand
<b>Guidance from the Hadith:</b><br> 1) Intention has a great effect on the validity of deeds and their reward. The more sincere a person is to Allah and the stronger his compliance is with the Messenger of Allah (may Allah’s peace and blessings be upon him), the greater his reward.<br> 2) Anyone who does good deeds, even as little as a step towards the masjid, will have all of his reward gathered for him by Allah without missing a single portion thereof.
Related hadiths5
Compare isnād across 5 related chains →