Ecclesiastes 8:14

14 But this is nonsense. Look at what happens in the world: sometimes the righteous get the punishment of the wicked, and the wicked get the reward of the righteous. I say it is useless.

Ecclesiastes 8:14 Meaning and Commentary

Ecclesiastes 8:14

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 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 as if they had lived the best of lives, and were the most righteous persons upon earth; see ( Job 21:7-13 ) ( Psalms 73:4 Psalms 73:5 Psalms 73:7 ) ( Luke 16:19 ) ; I said, that this also [is] vanity;
this is said, as some think, according to the judgment of corrupt nature; or as it is apprehended by such who do not rightly consider the judgments of God and the wisdom of Providence in the ordering of things to answer good purposes; or rather the sense is, this is one of the miseries and infelicities of this life, and which demonstrates the emptiness of all things here below, and that the chief good and supreme happiness is not to be had here; but there is and must be a future state, when all things will be set right, and everyone will have and enjoy his proper portion.

Ecclesiastes 8:14 In-Context

12 A sinner may commit a hundred crimes and still live. Oh yes, I know what they say: "If you obey God, everything will be all right,
13 but it will not go well for the wicked. Their life is like a shadow and they will die young, because they do not obey God."
14 But this is nonsense. Look at what happens in the world: sometimes the righteous get the punishment of the wicked, and the wicked get the reward of the righteous. I say it is useless.
15 So I am convinced that we should enjoy ourselves, because the only pleasure we have in this life is eating and drinking and enjoying ourselves. We can at least do this as we labor during the life that God has given us in this world.
16 Whenever I tried to become wise and learn what goes on in the world, I realized that you could stay awake night and day
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.