Repentance
Repentance is accepted by Allah from those who sin out of ignorance and then quickly turn back. Allah forgives them
4:17Forgiveness is only incumbent on Allah toward those who do evil in ignorance (and) then turn quickly (in repentance) to Allah. These are they toward whom Allah relenteth. Allah is ever Knower, Wise.