فَاَمَّا مَنْ تَابَ وَاٰمَنَ وَعَمِلَ صَالِحًا فَعَسٰٓى اَنْ يَّكُوْنَ مِنَ الْمُفْلِحِيْنَ ( القصص: ٦٧ )
Fa ammaa man taaba wa aamana wa 'amila saalihan fa'asaaa ai yakoona minal mufliheen (al-Q̈aṣaṣ 28:67)
But as for one who had repented, believed, and done righteousness, it is expected [i.e., promised by Allah] that he will be among the successful. (Al-Qasas  : 67)
1 Mufti Taqi Usmani
As for the one who repents and becomes a believer and acts righteously, hopefully he will be among the successful.