Sahih Muslim 4917: Repentance
It is narrated from Hazrat Bara bin Azib (ra) that the Messenger of Allah (saw) said: “What do you say about the joy of a man whose she-camel got loose from him and goes on in a barren wilderness dragging its nose rope, where this (man) has neither food nor water, while his food and water are on that she-camel? He set about searching for it until it became very hard for him. Then it (the she-camel) passed by the trunk of a tree and its nose rope got entangled. Then the man found the nose rope entangled (with the trunk of that tree).” We said: (He would be) very (joyful), O Messenger of Allah (saw). Upon this the Messenger of Allah (saw) said: “By Allah, surely Allah is more pleased with the repentance of His servant than that man was pleased at (finding) his she-camel.”
AI-translated by Islam-Today