There is a vanity that takes place on earth, that there are righteous people to whom it happens according to the deeds of the wicked, and there are wicked people to whom it happens according to the deeds of the righteous. I said that this also is vanity.
Wise and good men have, of old, been perplexed with this difficulty, how the prosperity of the wicked and the troubles of the righteous can be reconciled with the holiness and goodness of the God that governs the world. Concerning this Solomon here gives us his advice. I.
Commenting on Ecclesiastes 8:14-17
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.
An objection is here started (entertained by Solomon in his apostasy), as in Ecc 3:16; Ecc 7:15, to the truth of retributive justice, from the fact of the just and the wicked not now receiving always according to their respective deserts; a cavil, which would seem the more weighty to men living under the Mosaic covenant of temporal sanctions.