Surah Al-Qasas

28:67

فَأَمَّا مَن تَابَ وَءَامَنَ وَعَمِلَ صَٰلِحًۭا فَعَسَىٰٓ أَن يَكُونَ مِنَ ٱلْمُفْلِحِينَ

But as for one who had repented, believed, and done righteousness, it is promised by Allah that he will be among the successful.

Tafsir 28:67

As for one amongst these idolaters who repents from his disbelief, brings faith in Allah and His Messengers, and does good actions, perhaps he will be amongst those who are successful in attaining what they seek and who are saved from what they fear.