2 Because to all there is one event, to the upright man and to the evil, to the clean and to the unclean, to him who makes an offering and to him who makes no offering; as is the good so is the sinner; he who takes an oath is as he who has fear of it. 3 This is evil in all things which are done under the sun: that there is one fate for all, and the hearts of the sons of men are full of evil; while they have life their hearts are foolish, and after that—to the dead.

4 For him who is joined to all the living there is hope; a living dog is better than a dead lion. 5 The living are conscious that death will come to them, but the dead are not conscious of anything, and they no longer have a reward, because there is no memory of them. 6 Their love and their hate and their envy are now ended; and they have no longer a part for ever in anything which is done under the sun. 7 Come, take your bread with joy, and your wine with a glad heart. God has taken pleasure in your works. 8 Let your clothing be white at all times, and let not your head be without oil. 9 Have joy with the woman of your love all the days of your foolish life which he gives you under the sun. Because that is your part in life and in your work which you do under the sun. 10 Whatever comes to your hand to do with all your power, do it because there is no work, or thought, or knowledge, or wisdom in the place of the dead to which 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.