There is a vanity which is done upon the earth,.... Transacted in this lower world under the sun, through the permission and direction of divine Providence; not that it is a vanity on the part of God, who has wise ends to answer by it, for the good of his people, the trial of their graces, &c.
or to bring sinners to repentance, or harden them in sin; but this shows the vanity and uncertainty of all worldly things, and that there is no happiness to be had in them;that there be just [men], unto whom it happeneth according to the work of the wicked: to whom evil comes, as the Targum and Jarchi; who are treated as if they were wicked men, and dealt with in providence as sinners would be, if they had the just desert of their wicked works; being attended with poverty, sickness, and disgrace, and other calamities of life, as Job, Asaph, Lazarus, and others, and yet truly righteous and good men;again, there be wicked [men] to whom it happeneth according to the work of the righteous; to whom good things come, as the Targum and Jarchi; who have an affluence of good things, all the outward blessings of life, as health, wealth, honour, long life, &c.