Ecclesiastes 9:7-18 ESV
Go, eat your bread with joy, and drink your wine with a merry heart, for God has already approved what you do.
Let your garments be always white. Let not oil be lacking on your head.
Enjoy life with the wife whom you love, all the days of your vain life that he has 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 it 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 those with knowledge, but time and chance happen to them all. For man does not know his time. Like fish that are taken in an evil net, and like birds that are caught in a snare, so the children of man are snared at an evil time, 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 men in it, and a great king came against it and besieged it, building great siegeworks against it. But there was found in it a poor, wise man, and he by his wisdom delivered the city. Yet no one remembered that poor man. But I say that wisdom is better than might, though the poor man’s wisdom is despised and his words are not heard.
The words of the wise heard in quiet are better than the shouting of a ruler among fools. Wisdom is better than weapons of war, but one sinner destroys much good.
ESV: English Standard Version 2016