2 All things come alike to all. There is one event to the righteous and to the wicked; to the good, to the clean, to the unclean, to him who sacrifices, and to him who doesn’t sacrifice. As is the good, so is the sinner; he who takes an oath, as he who fears an oath. 3 This is an evil in all that is done under the sun, that there is one event to all: yes also, the heart of the sons of men is full of evil, and madness is in their heart while they live, and after that they go to the dead.

4 For to him who is joined with all the living there is hope; for a living dog is better than a dead lion. 5 For the living know that they will die, but the dead don’t know anything, neither do they have any more a reward; for the memory of them is forgotten. 6 Also their love, their hatred, and their envy has perished long ago; neither have they any more a portion forever in anything that is done under the sun. 7 Go your way—eat your bread with joy, and drink your wine with a merry heart; for God has already accepted your works. 8 Let your garments be always white, and don’t let your head lack oil. 9 Live joyfully with the wife whom you love all the days of your life of vanity, which he has given you under the sun, all your days of vanity: for that is your portion in life, and in your labor in which you labor under the sun. 10 Whatever your hand finds to do, do it with your might; for there is no work, nor device, nor knowledge, nor wisdom, in Sheol, where you are going.

Matthew Henry's Commentary on Ecclesiastes 9:2-10

Commentary on Ecclesiastes 9:1-3

(Read Ecclesiastes 9:1-3)

We are not to think our searching into the word or works of God useless, because we cannot explain all difficulties. We may learn many things good for ourselves and useful to others. But man cannot always decide who are objects of God's special love, or under his wrath; and God will certainly put a difference between the precious and the vile, in the other world. The difference as to present happiness, arises from the inward supports and consolations the righteous enjoy, and the benefit they derive from varied trials and mercies. As far as the sons of men are left to themselves, their hearts are full of evil; and prosperity in sin, causes them even to set God at defiance by daring wickedness. Though, on this side death, the righteous and the wicked may often seem to fare alike, on the other side there will be a vast difference between them.

Commentary on Ecclesiastes 9:4-10

(Read Ecclesiastes 9:4-10)

The most despicable living man's state, is preferable to that of the most noble who have died impenitent. Solomon exhorts the wise and pious to cheerful confidence in God, whatever their condition in life. The meanest morsel, coming from their Father's love, in answer to prayer, will have a peculiar relish. Not that we may set our hearts upon the delights of sense, but what God has given us we may use with wisdom. The joy here described, is the gladness of heart that springs from a sense of the Divine favour. This is the world of service, that to come is the world of recompence. All in their stations, may find some work to do. And above all, sinners have the salvation of their souls to seek after, believers have to prove their faith, adorn the gospel, glorify God, and serve their generation.