This is what he means, in my opinion: “Confess your sins; receive from God’s mouth his support after your confession; and take his words into your heart.” Certainly Eliphaz said these things, as he believed, by making himself equal to Job.… However, he pronounces a correct dogma here. He, in fact, thinks that Job suffers his adversities because of his sins but also so that he will be purified through the endurance of his afflictions. Once he is purified, he will be delivered from any extraneous element and freed from any involvement with iniquity. And like gold refined in a melting pot, he will appear to be tested. If you, he says, endure what has happened to you, God will make you pure, like silver purified with fire.
This means that you will be restored to your former state. And God will be your helper while before it seemed that he had completely neglected the care of your salvation, as if he had been absent.
[AD 253] Origen of Alexandria on Job 22:21-25