Jami at-Tirmidhi 2498: Chapters on the description of the Day of Judgement, Ar-Riqaq, and Al-Wara'
And the Messenger of Allah (saw) 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
English translation, translator not named, from an open hadith text collection
Book 37: Chapters on the description of the Day of Judgement, Ar-Riqaq, and Al-Wara'