Sure Al-Qasas

28:67

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

Was aber jemanden angeht, der bereut und glaubt und rechtschaffen handelt, der wird vielleicht zu denjenigen gehören, denen es wohl ergeht.

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.