Welcome to CAF If you grow in your prayer life and are faithful to it, then your relationship with the Blessed Trinity will give you the grace to not, not focus on your past. The evil one really wants the end of your marriage, and you to become discouraged and fall into the trap of past sins. Thoughts always come into ones head as you live out your faith. You have tools,-- rosary, sacraments, spiritual books, holy water, changing – like all of a sudden you get down thoughts and get out of the place you are and pray, or do something virtuous – or go get a glass of water, Fight the good fight – bad thoughts then why not ask your angel to help you, pray with scripture, memorize certain bible verses. And keep going to confession. Just don’t waste time in the past because it is gone. Live now and also don’t worry about the future. We are all in this together. God is our merciful Father and a beloved Father . You want to please God first. Love him but don’t keep throwing junk in the face of God when he has already forgiven you. Fight the good fight and you do not have to tell your wife about this — You first belong to God, then your wife and then your family. Just some thoughts but they are not dogma. Prayers for you.