Study. Leaving aside the tradition, Job 22.21 - 25 By Fabian Massa.
- Stripped to their poor, 22.6
- He denied water and food to the needy, 22.7
- He appropriated the lands of their neighbors, 22.8
- Did not meet the needs of widows and their inheritance snatched orphans, 22.9
- From 22.10 to 20 tells Job that God from heaven saw "all their wickedness" and that their plight is a divine retribution for wrongs committed.
From 22.21, depending on which version you are reading one, you can find two texts that give a different message depending on whether the chosen version is based on the Textus Receptus  or not. In the Textus Recptus of Desiderius Erasmus (base of the King James 1909 1960 1977 1995 // King James Authorized Version // -AKJV) the recommendation is to turn to God for peace and that because of this the person will "you'll have more gold as dust, and gold like stones streams Ofir (22.24)."
However the latest versions, which paradoxically are translated from much older texts that used by Erasmus (as the NIV, NLT, Bible Current Language, Good News, or the American Amplified Bible) we find the following in 22.21-25:
King James Version (KJV)
Amplified Bible (AMP)
21 Acquaint now thyself with him, and be at peace: thereby good shall come unto thee.
21 Acquaint now yourself with Him [agree with God and show yourself to be conformed to His will] and be at peace; by that [you shall prosper and great] good shall come to you.
22 Receive, I pray you, the law and instruction from His mouth and lay up His words in your heart.
23 If you return to the Almighty [and submit and humble yourself before Him], you will be built up; if you put away unrighteousness far from your tents,
24 If you lay gold in the dust, and the gold of Ophir among the stones of the brook [considering them of little worth],
25 And make the Almighty your gold and [the Lord] your precious silver treasure,
It is an exercise in detachment of shedding. This passage has a theological weight that makes him lose his salvation, it is not so, but to see how far we prefer the truth of the Word of God or the truth of the "preferred version". To think.