Colossians 3:2 Set your mind on things above, not on things on the earth. Meditate on good things.Philippians 4:8 And now, dear brothers and sisters, one final thing. Fix your thoughts on what is true, and honorable, and right, and pure, and lovely, and admirable. Think about things that are excellent and worthy of praise.
If sins can be punished from a thought level, we have to sanctify our mind and fill it with the Word.
Matthew 5:28 But I say to you that whoever looks at a woman to lust for her has already committed adultery with her in his heart.