Just as Eliphaz promised temporal goods to those doing good, so also he asserted that all temporal adversities come about because of the sins of the one who suffers them. Since Job had suffered many adversities, Eliphaz uses him as an example to the people, and as he expresses this saying, "He has used me as a proverb to the people and his example in their midst." This is because to prove his opinion about the cause of adversities he used Job as an example, presuming he was punished for sin.
Source: Commentary on Job