THERE is a simple but beautiful prayer called “The Act of Contrition” prayed by the penitent at the end of Confession:
O my God, I am sorry with all my heart for having sinned against You. I detest all of my sins because of Your just punishment, but most of all because they offend You my God, Who are all good and deserving of all my love. I firmly resolve, with the help of Your grace, to sin no more and to avoid the near occasion of sin.
The “near occasion of sin.” Those four words can save you.