I need to look back at all the kindnesses of God, and also my faith in what God is going to provide. I can take the counterfeit now, or I can wait for the better, which God offers. And that’s a tremendous motivation that is oftentimes overlooked. So, we need to flee those things and those circumstances that put us in almost, “You-can’t-do-anything-but-fail situation.” Get away from that. But also look at the goodness of God. Realize, that in his sovereignty and his omniscience, he knows that many of our desires that can be perverted, are actually, in themselves, good desires, and he has a plan for them.Paul Washer
For more, see How Do We Fight Sexual Temptation? (Paul Washer).