Thus he most clearly refuted their opinion, showing that temporal prosperity is not always the reward of virtue nor temporal adversity the punishment of sin, because evil men frequently prosper in this life although they merit nothing good from God, and with this they suffer no grave adversities. But someone could counter: If prosperity happens to evil men and they lack adversities, then there is, therefore, no reason to avoid evil, and so Qoheleth says, "The same things happen to everyone, and so the hearts of the sons of men are filled with evil." (9:13) But he answers to this objection sayi...ng, "Nevertheless, since their own goods are not in their hands, let their counsel be far from me." To understand this one must know that certain goods are in the hand of a man, that is, in his power, namely, the voluntary works of virtue of which he is lord through his free will aided by grace of God. Thus the virtuous can always retain goods of this kind for as long a time as they wish, and because of this the advice to pursue goods of this kind should be heeded. But the goods of temporal prosperity are not in the power of those who possess them so that they can acquire or keep them when they will. Thus the counsel of those men should be rejected in which they hold God and justice in contempt in order to live prosperously; for by this means they cannot obtain what they intend, but sometimes are pressed with adversities.
Source: Commentary on Job