Job apologizes to the Lord and then offers to answer, as God had instructed him. He then tells the Lord how hearing about Him did not compare to seeing Him. Now that Job has seen the Lord, he abhorred himself and repented. The Lord then turned to the friends of Job and scolded them for their wrong speech concerning Him. His wrath was aroused against them, and He instructed them to offer sacrifices of bulls and rams, and then ask Job to pray for them to be forgiven, or they would not be forgiven. They went to Job and he prayed for them, and then God restored all that He had before, and twice as much. His family came around him and gave him consolation and gifts.
Job 42:12–15 (NKJV)
12 Now the LORD blessed the latter days of Job more than his beginning; for he had fourteen thousand sheep, six thousand camels, one thousand yoke of oxen, and one thousand female donkeys. 13 He also had seven sons and three daughters. 14 And he called the name of the first Jemimah, the name of the second Keziah, and the name of the third Keren-Happuch. 15 In all the land were found no women so beautiful as the daughters of Job; and their father gave them an inheritance among their brothers.
Job 42:16–17 (NKJV)
16 After this Job lived one hundred and forty years, and saw his children and grandchildren for four generations. 17 So Job died, old and full of days.
As you can see, Job was vindicated in his rightesousness, even though God did reveal to him an even greater knoweldge of Himself. His friends learned that they were wrong in their very narrow understanding of sin and punishment, and were forgiven. Job was restored to more than he ever lost. The moral of the story: trust in the Lord, even when times are tough, and His plan will be marvelous!