Job 22:23 If thou return to the Almighty, thou shalt be built up, thou shalt put away iniquity far from thy tabernacles.
Eliphaz is reprimanding Job in this speech spouting the conventional wisdom that his sins are causing his sufferings. According to the friends, the intense suffering of Job is directly caused by his serious sins. It must be, for why would it be so bad? In 22:5, Eliphaz scolds and asks: “Is not your evil abundant? There is no end to your iniquities.” Neither Job nor his friends know that his pain is directly caused by Satan without cause.
However, we must admit that God has permitted Satan to inflict the loss and the pain, up to a limit. So in some sense, God is the ultimate cause of bad things, though Sin and Satan is the direct cause. God has His reasons, which we may never find out, but we may be sure that that His reasons are good ones, his will is always good and gracious, and in the end He will work it out together for good for His kids.
Meanwhile, the conditional promise given through Eliphaz is still true: if you return to the Lord (repent and believe), then you will be built up. He is right in calling for all of us to repent daily and believe the gospel. Then the promise comes true: He will build you up, your soul, your life, your family, your eternity. Daily repentance and faith in Jesus builds us up and makes present and real all the promises of God. Job’s end was better than his present state. And so will yours be, if you return.