The Book of Job cliffnotes:
Job is wealthy and fucking righteous, God loves him.
Satan tells God to test Job by taking away all his possessions and good fortune.
God makes it so that all of Job's children die, all his livestock die, raiders steal his crops, he loses all his money, and he breaks out with a horrible skin disease.
Job's friends come by and offer their differing philosophies. One says that Job clearly has something to repent for. One says not to question God. Job ends up questioning God.
God comes out and offers a huge filibuster about how He created everything, so He can do whatever the fuck He wants.
Job repents for questioning God.
Job's good fortune returns, and he gets new children to replace the ones that died.