Infidels are critical of the way that Job ends (Job 42:10-17). How can giving him a new family make amends for the loss of his original family? Are children replaceable? Isn’t that way too pat?
i) To begin with, we need to realize that the account is a bit stylized. You can see that in the numerology, with its multiples of seven. 7 (or possibly 14) sons, corresponding to his 7 original sons. 14,000 sheep–a multiple of 7, doubling the original number of sheep. Living to the age of 140–a multiple of 7. These symmetrical figures are somewhat artificial.
ii) More to the point, the infidel criticism misses the point. The purpose of Job’s restoration is not to make up for the loss, in a facile all’s-well-that-ends-well epilogue. The purpose, rather, is to vindicate God’s positive view of Job in contrast to Satan’s cynicism (Job 1-2). Job stood the test. God was right, Satan was wrong. Having successfully passed through the grueling ordeal, Job is given more than he had before, in public acknowledgement of the fact that Job wasn’t pious for mercenary reasons. Job remained steadfast when he was reduced to nothing, with no hope of restoration. He didn’t expect to come out of his ordeal on top.