Acts 3:19  Now repent (express sincere regret) of your sins and turn to God, so that your sins may be wiped away.

When you repent, He forgives.