Ecclesiastes 2:9-17

9 So I became greater than all who had lived in Jerusalem before me, and my wisdom never failed me. 10 Anything I wanted, I would take. I denied myself no pleasure. I even found great pleasure in hard work, a reward for all my labors. 11 But as I looked at everything I had worked so hard to accomplish, it was all so meaningless—like chasing the wind. There was nothing really worthwhile anywhere.
12 So I decided to compare wisdom with foolishness and madness (for who can do this better than I, the king?). 13 I thought, “Wisdom is better than foolishness, just as light is better than darkness. 14 For the wise can see where they are going, but fools walk in the dark.” Yet I saw that the wise and the foolish share the same fate. 15 Both will die. So I said to myself, “Since I will end up the same as the fool, what’s the value of all my wisdom? This is all so meaningless!” 16 For the wise and the foolish both die. The wise will not be remembered any longer than the fool. In the days to come, both will be forgotten.

17 So I came to hate life because everything done here under the sun is so troubling. Everything is meaningless—like chasing the wind.