Plain Facts for Old and Young by John Harvey Kellogg

4. As a help to purity of mind, whenever impure thoughts enter,

immediately direct the mind upon the purest object with which you are acquainted. Flee from the special exciting cause, if there is one, and engage in some active labor or other exercise that will divert the mind into another channel.