AHMAD 21214:
from Ubay b. Kaʿb —
[Machine] There was a man in the city that I didn't know anyone who lived farther away from the mosque than him. So, he was advised, "If you were to buy a donkey and ride it during the day and night, it would still not bring you as close to the mosque as your house, or he said, your place, is." So the incident was narrated to the Messenger of Allah ﷺ, who said, "What did you intend by saying, 'It does not please me that my house, or he said, my place, is next to the mosque'?" He said, "I intended that my coming to the mosque and my returning to my family would be recorded as acts of obedience." The Messenger of Allah ﷺ said, "Allah has given you all of that, or Allah has given you what you intended, or Allah has given you all of that which you intended."
أحمد ٢١٢١٤:
عن ابي بن كعب —
كَانَ رَجُلٌ بِالْمَدِينَةِ لَا أَعْلَمُ رَجُلًا كَانَ أَبْعَدَ مِنْهُ مَنْزِلًا أَوْ قَالَ دَارًا مِنَ الْمَسْجِدِ مِنْهُ فَقِيلَ لَهُ لَوْ اشْتَرَيْتَ حِمَارًا فَرَكِبْتَهُ فِي الرَّمْضَاءِ وَالظُّلُمَاتِ فَقَالَ مَا يَسُرُّنِي أَنَّ دَارِي أَوْ قَالَ مَنْزِلِي إِلَى جَنْبِ الْمَسْجِدِ فَنُمِيَ الْحَدِيثُ إِلَى رَسُولِ اللهِ ﷺ فَقَالَ مَا أَرَدْتَ بِقَوْلِكَ مَا يَسُرُّنِي أَنَّ مَنْزِلِي أَوْ قَالَ دَارِي إِلَى جَنْبِ الْمَسْجِدِ؟ قَالَ أَرَدْتُ أَنْ يُكْتَبَ إِقْبَالِي إِذَا أَقْبَلْتُ إِلَى الْمَسْجِدِ وَرُجُوعِي إِذَا رَجَعْتُ إِلَى أَهْلِي قَالَ أَعْطَاكَ اللهُ ذَلِكَ كُلَّهُ أَوْ أَنْطَاكَ اللهُ مَااحْتَسَبْتَ أَجْمَعَ أَوْ أَنْطَاكَ اللهُ ذَلِكَ كُلَّهُ مَا احْتَسَبْتَ أَجْمَعَ
hadithunlocked.com