Job’s friend Eliphaz is making the inference here that Job is sinful because of his calamities. He brings charges against Job based on his current state of affairs. Basically Eliphaz was saying it was Job’s word against God’s nature.
4 “Is it for your piety that he rebukes you
and brings charges against you?
5 Is not your wickedness great?
Are not your sins endless?
12 “Is not God in the heights of heaven?
And see how lofty are the highest stars!
13 Yet you say, ‘What does God know?
Does he judge through such darkness?
Although Eliphaz was judgmental and believed with a narrow mindset that the primary reason for Job’s sufferings was his sin, he did have a point. And that is, God will restore those who seek after Him.
21 “Submit to God and be at peace with him;
in this way prosperity will come to you.
22 Accept instruction from his mouth
and lay up his words in your heart.
23 If you return to the Almighty, you will be restored:
If you remove wickedness far from your tent
24 and assign your nuggets to the dust,
your gold of Ophir to the rocks in the ravines,
25 then the Almighty will be your gold,
the choicest silver for you.
26 Surely then you will find delight in the Almighty
and will lift up your face to God.
27 You will pray to him, and he will hear you,
and you will fulfill your vows.