Sura 28 – al-Qasas : Verse 67

But as for him who repented (from polytheism and sins), believed (in the Oneness of Allāh, and in His Messenger Muhammad), and did righteous deeds (in the life of this world), then he will be among those who are successful.