If you are a believer in the Lord Jesus Christ you will no doubt get frustrated at the times when you make mistakes and you end up sinning. It can be so annoying! You don't intent to; in fact you mean to keep your mind clear but you get caught out. There are a couple of passages in the New Testament that deal with these situations.
And if any man sin, we have an advocate with the Father, Jesus Christ the righteous'. This verse is teaching that when we sin the Lord Jesus draws along side His Father in heaven on our behalf. He is our advocate, that is the one who represents us before God. He (Jesus) is righteous. He, as a result of his death, made us righteous before God or right with God. On account of his sacrifice (that dealt with our sins) he also maintains our right standing before God.
My dear fellow believer do not give up in despair when you sin. The Lord Jesus who saved you will forgive and cleanse you when you confess your sins but before that even happens he has dealt with the issue in the presence of God. Your confession ensures that you consciously enjoy the benefits of what he has done for you.