David Bentley Hart said this quote

There is, of course, some comfort to be derived from the thought that everything that occurs at the level of secondary causality - in nature or history - is governed not only by a transcendent providence but by a universal teleology that makes every instance of pain and loss an indispensable moment in a grand scheme whose ultimate synthesis will justify all things. But one should consider the price at which the comfort is purchased: it requires us to believe in and love a God whose good ends will be realized not only in spite of - but entirely by way of - every cruelty, every fortuitous misery, every catastrophe, every betrayal, every sin the world has ever known; it requires us to believe in the eternal spiritual necessity of a child dying an agonizing death from diphtheria, of a young mother ravaged by cancer, of tens of thousands of Asians swallowed in an instant by the sea, of millions murdered in death camps and gulags and forced famines (and so on). It is a strange thing indeed to seek peace in a universe rendered morally intelligible at the cost of a God rendered morally loathsome.