For I consider that the sufferings of this present time are not worth comparing with the glory that is to be revealed to us.
Romans 8:18 ESV

Atheists often say that any God who allows suffering isn’t worthy to be worshiped, but their logic requires that they be practically omniscient gods themselves in order to be so certain that there is insufficient good to outweigh the bad.

God has a much deeper understanding of all things than we do. He knows every evil thing that happens in the world, and he also knows how every one of them will eventually work toward a greater good for those who trust in him, if not in this life, then certainly in the next.