All this I laid to heart, examining it all, how the righteous and the wise and their deeds are in the hand of God; whether it is love or hate one does not know. Everything that confronts them is vanity, since the same fate comes to all, to the righteous and the wicked, to the good and the evil, to the clean and the unclean, to those who sacrifice and those who do not sacrifice. As are the good, so are the sinners; those who swear are like those who shun an oath. This is an evil in all that happens under the sun, that the same fate comes to everyone. Moreover, the hearts of all are full of evil; madness is in their hearts while they live, and after that they go to the dead. But whoever is joined with all the living has hope, for a living dog is better than a dead lion. The living know that they will die, but the dead know nothing; they have no more reward, and even the memory of them is lost. Their love and their hate and their envy have already perished; never again will they have any share in all that happens under the sun.
Go, eat your bread with enjoyment, and drink your wine with a merry heart; for God has long ago approved what you do. Let your garments always be white; do not let oil be lacking on your head. Enjoy life with the wife whom you love, all the days of your vain life that are given you under the sun, because that is your portion in life and in your toil at which you toil under the sun. Whatever your hand finds to do, do with your might; for there is no work or thought or knowledge or wisdom in Sheol, to which you are going.
Again I saw that under the sun the race is not to the swift, nor the battle to the strong, nor bread to the wise, nor riches to the intelligent, nor favor to the skillful; but time and chance happen to them all. For no one can anticipate the time of disaster. Like fish taken in a cruel net, and like birds caught in a snare, so mortals are snared at a time of calamity, when it suddenly falls upon them.
I have also seen this example of wisdom under the sun, and it seemed great to me. There was a little city with few people in it. A great king came against it and besieged it, building great siegeworks against it. Now there was found in it a poor wise man, and he by his wisdom delivered the city. Yet no one remembered that poor man. So I said, “Wisdom is better than might; yet the poor man’s wisdom is despised, and his words are not heeded.”
The quiet words of the wise are more to be heeded than the shouting of a ruler among fools.
Wisdom is better than weapons of war, but one bungler destroys much good.
Ecclesiastes 9:1-18 – https://www.biblegateway.com/passage?search=Ecclesiastes%209:1-18&version=NRSV