Sure An-Nisaa

4:17

إِنَّمَا ٱلتَّوْبَةُ عَلَى ٱللَّهِ لِلَّذِينَ يَعْمَلُونَ ٱلسُّوٓءَ بِجَهَٰلَةٍۢ ثُمَّ يَتُوبُونَ مِن قَرِيبٍۢ فَأُو۟لَٰٓئِكَ يَتُوبُ ٱللَّهُ عَلَيْهِمْ ۗ وَكَانَ ٱللَّهُ عَلِيمًا حَكِيمًۭا

Die Annahme der Reue obliegt Allah nur für diejenigen, die in Unwissenheit Böses tun und hierauf beizeiten bereuen. Deren Reue nimmt Allah an. Und Allah ist Allwissend und Allweise.

Tafsir 4:17

Allah only turns in mercy and forgiveness to those who commit disobedience and overstep the limits out of foolishness and impulse, and who repent to Allah asking for His forgiveness before the time of their death. Allah forgives these people, by overlooking their disobedience. Allah knows the circumstances of people, and is Wise in His decree and sacred laws.