The Qur'an calls for tawbah nasuha — a sincere repentance: regret the sin, stop it, resolve not to return, and turn back to Allah. And it attaches a promise: He may erase the wrong entirely and open the gardens to you.
“O you who have believed, repent to Allah with sincere repentance. Perhaps your Lord will remove from you your misdeeds and admit you into gardens beneath which rivers flow...”— 66:8 (Saheeh International)
Ask Noor can walk you through the steps of tawbah and the dua to say when you return to Allah.
Ask Noor — free on the App Store