In chapter 17, we learn, though we might have supposed it, that Job was not only misjudged by his three friends, but by all the people (verse 6). His hope was for relief in death, though by reason of anguish (as well as being quite satisfied with himself), he failed entirely to justify God, job is confident that the ungodly and the righteous have very different futures before them (verses 8-9).
He was in deep distress over his circumstances of trial, but there was no cloud on his soul as he thought of eternity, though he knew little of what God had and has in store for them that love Him (verses 13-16, and 1 Corinthians 2:9, 109But as it is written, Eye hath not seen, nor ear heard, neither have entered into the heart of man, the things which God hath prepared for them that love him. 10But God hath revealed them unto us by his Spirit: for the Spirit searcheth all things, yea, the deep things of God. (1 Corinthians 2:9‑10).).