It is narrated from Sayyiduna Ali (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Allah Almighty loves that believing servant who repents after being afflicted with a trial."
Hadith Referenceمسند احمد / مسند الخلفاء الراشدين / 605
Hadith Gradingحکم دارالسلام:إسناده ضعيف جداً شبه موضوع