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:9:27

Then Allah will accept repentance after that for whom He wills; and Allah is Forgiving and Merciful.  

Then afterwards God will relent to whom He will, from among them, by ˹their acceptance of˺ Islam. And God is Forgiving, Merciful.
القرآن:٩:٢٧

ثُمَّ يَتُوبُ اللَّهُ مِنْ بَعْدِ ذَٰلِكَ عَلَىٰ مَنْ يَشَاءُ ۗ وَاللَّهُ غَفُورٌ رَحِيمٌ  

{ثم يتوب الله من بعد ذلك على من يشاء} منهم بالإسلام {والله غفور رحيم}.