Repentance
The first step of Teshuva is to regret having sinned. The second step is to leave the sin and commit to never do it again. Third step is to confess to Hashem with words and ask for forgiveness.