You must be very, very stubborn, especially in this matter: to begin anew each and every day and at every moment, training yourself to hold back your thoughts so they don't wander outside, God forbid. Free choice is always yours.
And you must also plead with Hashem about this a great deal, for everything depends on thought, as you know yourself.
Alim LeTerufah, Letter 54