Ecclesiastes 1:16-18 NLT

16 I said to myself, "Look, I am wiser than any of the kings who ruled in Jerusalem before me. I have greater wisdom and knowledge than any of them."
17 So I worked hard to distinguish wisdom from foolishness. But now I realize that even this was like chasing the wind.
18 For the greater my wisdom, the greater my grief. To increase knowledge only increases sorrow.