That reminds me of the South Park episode Cartmanland. Cartman (an absolutely awful person) gets his own amusement park, while Kyle (whom Cartman's always ripping on) develops an infected hemorrhoid and is put in the hospital. Kyle starts losing his faith over the unfairness of it all, so his parents share with him the story of Job. Instead of coming off with a renewed faith, Kyle takes the story to mean there is no god and loses the will to live.
Until Cartman ends up losing everything, that is. Only then does Kyle see a bit of justice in the world and ends up making a recovery.