When God's purpose asks a man to lose something, God pays that man back with not only a compensation that equals the loss or exceeds the loss, but one in which the man is satisfied. The satisfaction of the sould of the sufferer is the goal and aim of this act. It is something that is beyond payment, it repays in true value.
It works on two levels: in this life and in the life to come.
1) In this life God either inwardly or outwardly rewards the sufferer. In the book by C. S. Lewis, Till We Have Faces: A Myth Retold, there is a captive slave who is a secondary character in the book, but he is the teacher of the daughters of the king. The daughters, who are the main characters of the book, receive their education from this captured Stoic philosopher. He had lost his family and there was no hope of him returning to Greece to see them again, but in the story he finds family in caring for and educating the king's daughters. We find happiness and contentment to be the ultimate reward of the one who has lost something. We must seek understanding so that we can see it because it is not always something that is defined by us, but if we see it and receive it for what it is then we can find peace in it.
2) In the life to come we experience the manifold gifts of a God who is all powerful and knowing. One of these is the healing of the soul. Read the last two chapters of the book of Revelation and see how God heals and restores all things that were lost.
At the end of Job God does restoration. How does he do it?