Surah Al-Qasas, ayah 67

28:67

فَأَمَّا مَن تَابَ وَءَامَنَ وَعَمِلَ صَٰلِحٗا فَعَسَىٰٓ أَن يَكُونَ مِنَ ٱلۡمُفۡلِحِينَ ٦٧

Fa ammā man tāba wa āmana wa'amila sālihan fa'asā an yakūna minal-muflihīn

But as for one who had repented, believed, and done righteousness, it is expected [i.e., promised by Allāh] that he will be among the successful.