The Book of Job is one of the most unusual books in the Old Testament. The book begins with what almost sounds like a wager between God and Satan. Satan predicts that Job, if he lost everything he had, would curse God to his face. Job does lose practically everything, but he endures it all. Eventually, in Chapter 40, God does speak to Job out of a whirlwind and essentially states that Job cannot begin to fathom the power that God has or the reason why God does certain things. Given the power of God's words, Job is in complete awe and thus he says, "I abhor myself, and repent in dust and ashes" (Job 42:6).
God also expresses anger at Job's friends, who had come by to give him advice. After this, God "accepts" Job and after Job "prayed for his friends," God "gave Job twice as much as he had before." Job's new riches, in particular, are as follows (42:12-13):
he had fourteen thousand sheep, and six thousand camels, and a thousand yoke of oxen, and a thousand she asses. He had also seven sons and three daughters.
Additionally, Job lived for 140 more years, long enough to see four generations of his descendants.