Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran: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.  

But as for him who repents, of idolatry, and believes, in the affirmation of God’s Oneness, and acts righteously, he observes the duties ˹of religion˺, maybe he will be among the successful, those delivered according to God’s promise.
القرآن:٢٨:٦٧

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

{فأما من تاب} من الشرك {وآمن} صدق بتوحيد الله {وعمل صالحاً} أدى الفرائض {فعسى أن يكون من المفلحين} الناجين بوعد الله.