Ecclesiastes 9:6-16

6 Their love, their hate, and their envy have already disappeared, and there is no longer a portion for them in all that is done under the sun.
7 Go, eat your bread with pleasure, and drink your wine with a cheerful heart, for God has already accepted your works.[a]
8 Let your clothes be white all the time, and never let oil be lacking on your head.[b]
9 Enjoy life with the wife you love all the days of your fleeting[c] life, which has been given to you under the sun, all your fleeting days. For that is your portion in life and in your struggle under the sun.
10 Whatever your hands find to do, do with [all] your strength, because there is no work, planning, knowledge, or wisdom in Sheol where you are going.

The Limitations of Wisdom

11 Again I saw under the sun that the race is not to the swift, or the battle to the strong, or bread to the wise, or riches to the discerning, or favor to the skillful; rather, time and chance happen to all of them.
12 For man certainly does not know his time: like fish caught in a cruel net, or like birds caught in a trap, so people are trapped in an evil time, as it suddenly falls on them.
13 I have observed that this also is wisdom under the sun, and it is significant to me:
14 There was a small city with few men in it. A great king came against it, surrounded it, and built large siege works against it.
15 Now a poor wise man was found in the city, and he delivered the city by his wisdom. Yet no one remembered that poor man.
16 And I said, "Wisdom is better than strength, but the wisdom of the poor man is despised, and his words are not heeded."

Footnotes 3

Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.