كتاب صفة القيامة والرقائق والورع عن رسول الله صلى الله
37  
Chapters on the description of the Day of Judgement, Ar-Riqaq, and Al-Wara'
(49)
Chapter: Regarding the Believer Recognizing the Gravity of His Sins
(49)
باب ‏)‏ ‏)‏
Jami` at-Tirmidhi 2498
And the Messenger of Allah (s.a.w) said:
"Allah is more pleased with the repentance of one of you that a man in a desolate, barren, destructive wasteland, who has his mount carrying his provisions, his food, and his drink and what he needs with him. Then it wanders away. So he goes to find it until he is on the brink of death. He says: 'I will return to the place where I lost it, to die.' So he returns to his place and his eyes become heavy (falling asleep). Then he awakens to find his mount at his head carrying his food, drink and what he needs."

Other chains report similar narrations.
وَقَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ لَلَّهُ أَفْرَحُ بِتَوْبَةِ أَحَدِكُمْ مِنْ رَجُلٍ بِأَرْضٍ دَوِيَّةٍ مُهْلِكَةٍ مَعَهُ رَاحِلَتُهُ عَلَيْهَا زَادُهُ وَطَعَامُهُ وَشَرَابُهُ وَمَا يُصْلِحُهُ فَأَضَلَّهَا فَخَرَجَ فِي طَلَبِهَا حَتَّى إِذَا أَدْرَكَهُ الْمَوْتُ قَالَ أَرْجِعُ إِلَى مَكَانِي الَّذِي أَضْلَلْتُهَا فِيهِ فَأَمُوتُ فِيهِ فَرَجَعَ إِلَى مَكَانِهِ فَغَلَبَتْهُ عَيْنُهُ فَاسْتَيْقَظَ فَإِذَا رَاحِلَتُهُ عِنْدَ رَأْسِهِ عَلَيْهَا طَعَامُهُ وَشَرَابُهُ وَمَا يُصْلِحُهُ ‏"‏ ‏.‏ قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ ‏.‏ وَفِيهِ عَنْ أَبِي هُرَيْرَةَ وَالنُّعْمَانِ بْنِ بَشِيرٍ وَأَنَسِ بْنِ مَالِكٍ عَنِ النَّبِيِّ صلى الله عليه وسلم ‏.‏
Grade: Sahih (Darussalam)
Reference : Jami` at-Tirmidhi 2498
In-book reference : Book 37, Hadith 84
English translation : Vol. 4, Book 11, Hadith 2498