Ecclesiastes 1:12-18 NLT

12 I, the Teacher, was king of Israel, and I lived in Jerusalem.
13 I devoted myself to search for understanding and to explore by wisdom everything being done in the world. I soon discovered that God has dealt a tragic existence to the human race.
14 Everything under the sun is meaningless, like chasing the wind.
15 What is wrong cannot be righted. What is missing cannot be recovered.
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.