Answer by A Quora admin:
Thanks for the A2A,!
I'm not sure whether or not you can control which thoughts percolate up to consciousness. What I used to do when I had doubts, as a Christian, was read, uncritically, apologetics related to those doubts. The main idea was to arm myself with an explanation or retort that, at least, sounded good. Basically, it's an act of confirmation bias to alleviate cognitive dissonance.
But you can't fool yourself for long. You become increasingly aware that you can't hide from yourself. If you're a curious type of person, you'll eventually be tempted to examine and compare both sides. I think it comes down to your self identity. Which is more important to you: reason or faith?
Don't indulge reason for too long. It has a way of eroding your fears and challenging dogmatic assumptions. It appears you've already indulged reason enough to consider your doubts. You need to pray more and immediately seek the counsel of a pious Muslim you personally respect. It may not be too late to shut out reason if you really put your mind to it.
Martin Luther, the man who sparked the Protestant Reformation, made no bones about the nature of faith. He claimed: “Whoever wants to be a Christian should tear the eyes out of his reason.” The same advice works equally well for Muslims.