أَخْبَرَنَا أَبُو الْحُسَيْنِ بْنُ بِشْرَانَ ، حَدَّثَنَا إِسْمَاعِيلُ بْنُ مُحَمَّدٍ الصَّفَّارُ ، حَدَّثَنَا يَحْيَى بْنُ جَعْفَرٍ الْوَاسِطِيُّ ، حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ ، حَدَّثَنَا سُلَيْمَانُ ، عَنْ أَبِي عُثْمَانَ ، عَنْ أُبَيِّ بْنِ كَعْبٍ قَالَ : كَانَ رَجُلٌ مَا أَعْلَمُ أَحَدًا مِنْ أَهْلِ الْمَدِينَةِ مِمَّنْ يُصَلِّي الْقِبْلَةَ أَبَعْدَ مَنْزِلًا مِنَ الْمَسْجِدِ مِنْهُ ، وَكَانَ يَحْضُرُ الصَّلَوَاتِ مَعَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ . قَالَ فَقِيلَ لَهُ : لَوِ اشْتَرَيْتَ حِمَارًا ، فَرَكِبْتَهُ فِي الرَّمْضَاءِ أَوِ الظَّلْمَاءِ ، فَقَالَ : وَاللَّهِ مَا أُحِبُّ أَنَّ مَنْزِلِي يَلْزَقُ الْمَسْجِدَ . فَأُخْبِرَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِذَلِكَ ، فَسَأَلَهُ ، فَقَالَ : يَا رَسُولَ اللَّهِ كَيْمَا يُكْتَبُ أَثَرِي وَخُطَايَ وَرُجُوعِي إِلَى أَهْلِي وَإِقْبَالِي وَإِدْبَارِي ، فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " أَنْطَاكَ اللَّهُ مَا احْتَسَبْتَ أَجْمَعَ " .
أَخْرَجَهُ مُسْلِمٌ مِنْ حَدِيثِ سُلَيْمَانَ التَّيْمِيِّ .
Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) narrates: There was a man, and I did not know anyone among the people of Madinah who prayed towards the qiblah whose house was farther from the mosque than his, and he used to attend the prayers with the Prophet (peace and blessings be upon him). He said: It was said to him: "If only you would buy a donkey and ride it (to the mosque) in the scorching sand or the darkness." He said: "By Allah, I would not like my house to be adjoining the mosque." Then the Messenger of Allah (peace and blessings be upon him) was told of this, and he (peace and blessings be upon him) asked him (about it). He said: "O Messenger of Allah, (I want) that my footprints, my steps, my returning to my family, and my coming and going (all) be written down." So the Messenger of Allah (peace and blessings be upon him) said: "Allah has granted you all that you intended and hoped to be rewarded for."
Imam Muslim (may Allah have mercy on him) recorded it from the narration of Sulayman al-Taymi (may Allah have mercy on him).