Job 20:22

In the fulness of his sufficiency he shall be in straits: every hand of the wicked shall come upon him.

The saying belongs to the words spoken by one of Job's three friends in their debate with him over his afflictions, coming near the close of their discussion.
In that closing part of the discussion the friends condemn him for what appears to be self-righteousness, while he dismisses their words because he feels they are condemning him unjustly.

Its place in the inspired book guarantees that it was truly spoken, not that what it asserts was true in Job's case, and such declarations by the friends are not to be taken as reliable teaching about Job or about God unless confirmed by other inspired teaching.
The statement that the wicked come into straits even in the fullness of sufficiency is generally true, because evil will ultimately be punished and good will ultimately be rewarded.

It was misapplied to Job, and the coming of suffering, adversity, and affliction upon a man does not prove that he is under God's displeasure nor mean that he should be discouraged.
Its inclusion does not prove that God's favor brings worldly wealth, for faithful people may instead be destitute and afflicted.