Like things happen to good and bad.
Ecclesiastes 9:1 But all this I have laid unto my heart, so as to clear up the whole of this, that the righteous and the wise, and their works, [are] in the hand of God, neither love nor hatred doth man know, the whole [is] before them. Ecclesiastes 9:2 The whole [is] as to the whole; one event is to the righteous and to the wicked, to the good, and to the clean, and to the unclean, and to him who is sacrificing, and to him who is not sacrificing; as [is] the good, so [is] the sinner, he who is swearing as he who is fearing an oath. Ecclesiastes 9:3 This [is] an evil among all that hath been done under the sun, that one event [is] to all, and also the heart of the sons of man is full of evil, and madness [is] in their heart during their life, and after itunto the dead.
There is a necessity of death unto men.
Ecclesiastes 9:4 But [to] him who is joined unto all the living there is confidence, for to a living dog it [is] better than to the dead lion. Ecclesiastes 9:5 For the living know that they die, and the dead know not anything, and there is no more to them a reward, for their remembrance hath been forgotten. Ecclesiastes 9:6 Their love also, their hatred also, their envy also, hath already perished, and they have no more a portion to the age in all that hath been done under the sun.
Comfort is all their portion in this life.
Ecclesiastes 9:7 Go, eat with joy thy bread, and drink with a glad heart thy wine, for already hath God been pleased with thy works. Ecclesiastes 9:8 At all times let thy garments be white, and let not perfume be lacking on thy head. Ecclesiastes 9:9 See life with the wife whom thou hast loved, all the days of the life of thy vanity, that He hath given to thee under the sun, all the days of thy vanity, for it [is] thy portion in life, even of thy labour that thou art labouring at under the sun. Ecclesiastes 9:10 All that thy hand findeth to do, with thy power do, for there is no work, and device, and knowledge, and wisdom in Sheol whither thou art going.
God's providence ruleth over all.
Ecclesiastes 9:11 I have turned so as to see under the sun, that not to the swift [is] the race, nor to the mighty the battle, nor even to the wise bread, nor even to the intelligent wealth, nor even to the skilful grace, for time and chance happen with them all. Ecclesiastes 9:12 For even man knoweth not his time; as fish that are taken hold of by an evil net, and as birds that are taken hold of by a snare, like these [are] the sons of man snared at an evil time, when it falleth upon them suddenly.
Wisdom is better than strength.
Ecclesiastes 9:13 This also I have seen: wisdom under the sun, and it is great to me. Ecclesiastes 9:14 A little city, and few men in it, and a great king hath come unto it, and hath surrounded it, and hath built against it great bulwarks; Ecclesiastes 9:15 and there hath been found in it a poor wise man, and he hath delivered the city by his wisdom, and men have not remembered that poor man! Ecclesiastes 9:16 And I said, 'Better [is] wisdom than might, and the wisdom of the poor is despised, and his words are not heard.' Ecclesiastes 9:17 The words of the wise in quiet are heard, More than the cry of a ruler over fools. Ecclesiastes 9:18 Better [is] wisdom than weapons of conflict, And one sinner destroyeth much good!