There are gifts from Allah for the one who errs is steeped in ignorance and then returns to HIm Subhanawataala with the promise that he will not go back to the old ways:
FOR THE FIRST DUA CLICK HERE
رَبَّنَا وَأَدْخِلْهُمْ جَنَّاتِ عَدْنٍ الَّتِي وَعَدتَّهُمْ وَمَن صَلَحَ مِنْ آبَائِهِمْ وَأَزْوَاجِهِمْ وَذُرِّيَّاتِهِمْ ۚ إِنَّكَ أَنتَ الْعَزِيزُ الْحَكِيمُ
[40:8] Pickthall
Our Lord! And make them enter the Gardens of Eden which thou hast promised them, with such of their fathers and their spouses and their descendants as do right. Lo! Thou, only Thou, art the Mighty, the Wise.
﴿٨﴾ وَقِهِمُ السَّيِّئَاتِ ۚوَمَن تَقِ السَّيِّئَاتِ يَوْمَئِذٍ فَقَدْ رَحِمْتَهُ ۚ وَذَٰلِكَ هُوَ الْفَوْزُ الْعَظِيمُ ﴿٩﴾
[40:9] Pickthall
And ward off from them ill-deeds; and he from whom Thou wardest off ill-deeds that day, him verily hast Thou taken into mercy. That is the supreme triumph.