Ecclesiastes 9:11-18 NLT

11 I have observed something else under the sun. The fastest runner doesn’t always win the race, and the strongest warrior doesn’t always win the battle. The wise sometimes go hungry, and the skillful are not necessarily wealthy. And those who are educated don’t always lead successful lives. It is all decided by chance, by being in the right place at the right time.
12 People can never predict when hard times might come. Like fish in a net or birds in a trap, people are caught by sudden tragedy.
13 Here is another bit of wisdom that has impressed me as I have watched the way our world works.
14 There was a small town with only a few people, and a great king came with his army and besieged it.
15 A poor, wise man knew how to save the town, and so it was rescued. But afterward no one thought to thank him.
16 So even though wisdom is better than strength, those who are wise will be despised if they are poor. What they say will not be appreciated for long.
17 Better to hear the quiet words of a wise person than the shouts of a foolish king.
18 Better to have wisdom than weapons of war, but one sinner can destroy much that is good.