C.s. Lewis said this quote

In a sense, [Christianity] creates, rather than solves, the problem of pain, for pain would be no problem unless, side by side with our daily experience of this painful world, we had received what we think a good assurance that ultimate reality is righteous and loving.