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 the believing servant who repents after being afflicted with a trial."
Hadith Referenceمسند احمد / مسند الخلفاء الراشدين / 810
Hadith Gradingحکم دارالسلام:إسناده ضعيف جداً شبه موضوع