Here is some more context to the quote.
You are scared out of your wits! What good is religion if it collapses under calamity? Think of what earthquakes and floods, wars and volcanoes, have done before to men! Did you think God had exempted Weybridge? He is not an insurance agent.This is of course excerpted from The War of the Worlds. The narrator-protagonist has encountered a curate who has, how shall we say it, "lost it".
The spectre of multi-armed bloodsucking slugs from Mars pillaging his world with their heat rays and giant mechanical walking tanks has undone the good cleric. He has been separated from his reason. The narrator is trying to snap him back to the practical, and back to action. This attempt ultimately fails, and the two of them eventually end up desperately battling to the quiet death while trapped in a wrecked house next to a Martian base of operations. By this time, the curate is thoroughly insane. In the end, his religion proved not only useless and but even harmful. His faith had only ever been an empty, fracturable shell, and when it was crushed then so was he.
Wells' views of religion in general, and Christianity in particular are pithily displayed in this excerpt and this tale.
This quote, this passage, and this misadventure rank among the top three extra-biblical influences in my unpaid childhood reading career. I have always ever remembered this angry tongue-lashing, and I was morbidly fascinated, horrified and grieved by this fictional Christian's descent into madness.
I remember resolving to myself that if I believe -- if I have faith in the human life, death, and resurrection of the Christ in final payment for my depravities -- if I have true religion -- then I will really believe, and my faith will not collapse in the face of calamity. I resolved never to give a skeptic the opportunity to berate me for the reasons that Wells' testy fictional stand-in lashed the curate. The resolution still stands, but it has not yet been truly tested.
Funny what you remember from childhood, eh?