عَنْ أَبِي عُثْمَانَ عَنْ أُبَيِّ بْنِ كَعْبٍ رَضِيَ اللَّهُ عَنْهُ قَالَ: كَانَ رَجُلٌ بِالْمَدِينَةِ لَا أَعْلَمُ رَجُلًا كَانَ أَبْعَدَ مِنْهُ مَنْزِلًا أَوْ قَالَ: دَارًا مِنَ الْمَسْجِدِ مِنْهُ (زَادَ فِي رِوَايَةٍ: قَالَ: فَكَانَ يَحْضُرُ الصَّلَوَاتِ كُلَّهُنَّ مَعَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ)، فَقِيلَ لَهُ: لَوِ اشْتَرَيْتَ حِمَارًا فَرَكِبْتَهُ فِي الرَّمْضَاءِ وَالظُّلُمَاتِ؟ فَقَالَ: مَا يَسُرُّنِي أَنَّ دَارِي أَوْ قَالَ مَنْزِلِي إِلَى جَنْبِ الْمَسْجِدِ، فَنُمِيَ الْحَدِيثُ إِلَى رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ، فَقَالَ: ((مَا أَرَدْتَ بِقَوْلِكَ مَا يَسُرُّنِي أَنْ مَنْزِلِي أَوْ قَالَ دَارِي إِلَى جَنْبِ الْمَسْجِدِ؟)) قَالَ: أَرَدْتُّ أَنْ يُكْتَبَ إِقْبَالِي إِذَا أَقْبَلْتُ إِلَى الْمَسْجِدِ وَرُجُوعِي إِذَا رَجَعْتُ إِلَى أَهْلِي، قَالَ: ((أَعْطَاكَ اللَّهُ ذَلِكَ كُلَّهُ، أَوْ أَنْطَاكَ اللَّهُ مَا احْتَسَبْتَ أَجْمَعَ))
Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) says: There was a man in Madinah who, to my knowledge, lived the farthest from the mosque, (in one narration there is the addition: he would attend all the prayers with the Noble Prophet (peace and blessings be upon him)). Someone said to him: If you buy a donkey and ride it during intense heat and darkness, you could come more easily. But he said: I am not pleased even if my house were right next to the mosque. When the Messenger of Allah (peace and blessings be upon him) learned of all this, he asked him: You said that you would not be pleased even if your house were next to the mosque—what did you mean by that? He said: My intention is that when I come to the mosque, my coming, and when I return to my house, my returning, both be recorded. The Prophet (peace and blessings be upon him) said: Allah the Exalted has granted you all of that. Or he said: The reward you were hoping for, Allah the Exalted has granted it all to you.