A saying based on Pascal’s wager.
What if the Quran was correct or if the real god wanted you to recognize that the god of the Bible is evil and should be rejected. Your belief hurt you in those cases.
As far as whether you got inner peace in tough times...can’t taje that away from you nor would I want to. Personally I have experienced some tough times, too, and was able to manage without such religious beliefs.