The Messenger of Allah ﷺ said, "Allah, the Exalted, loves the servant who is repeatedly tested and constantly turns back to Him in repentance."
حدثنا عبد الله حدثني عبد الأعلى بن حماد حدثنا داود بن عبد الرحمن العطار حدثنا أبو عبد الله مسلمة الرازي عن أبي عمرو البجلي عن عبد الملك بن سفيان الثقفي عن أبي جعفر محمد بن علي رضي الله عنه
قال رسول الله ﷺ إن الله تعالى يحب العبد المفتن التواب
Its isnad is daif. Discussion of it was given previously at 605, and it is a repeat with its isnad and wording, narrated from Abu Amr Bajali. In H, it is narrated from Ibn Amr Bajali, but that is an error.