You can’t always control what pops into your mind—but you can control what stays there. Here’s how the Bible teaches us to win that battle.