Sure Al-Baqara

2:160

إِلَّا ٱلَّذِينَ تَابُوا۟ وَأَصْلَحُوا۟ وَبَيَّنُوا۟ فَأُو۟لَٰٓئِكَ أَتُوبُ عَلَيْهِمْ ۚ وَأَنَا ٱلتَّوَّابُ ٱلرَّحِيمُ

außer denjenigen, die bereuen und verbessern und klar machen. Ihre Reue nehme Ich an, Ich bin ja der Reue-Annehmende und Barmherzige.

Tafsir 2:160

The exception is those who repent to Allah, asking for forgiveness, and regretting having hidden these clear signs, correcting what they do outwardly and inwardly, and making clear the truth and guidance which they had hidden. Allah accepts their repentance to Him. He turns to those who turn to Him, asking for forgiveness and regretting what they have done, and He forgives and is compassionate with them.