91 For all this I laid to my heart and [indeed] to investigate all this, that the righteous, and the wise, and their works, are in the hand of God; man knoweth neither love nor hatred: all is before them. 2 All things [come] alike to all: one event to the righteous and to the wicked, to the good, and to the clean, and to the unclean, to him that sacrificeth and to him that sacrificeth not: as is the good, so is the sinner; he that sweareth, as he that feareth an oath. 3 This is an evil among all that is done under the sun, that one thing befalleth all: yea, also the heart of the children of men is full of evil, and madness is in their heart while they live; and after that, [they have to go] to the dead.

Matthew Henry's Commentary on Ecclesiastes 9:1-3

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.