Ecclesiastes 1:16-18 ESV
I said in my heart, “I have acquired great wisdom, surpassing all who were over Jerusalem before me, and my heart has had great experience of wisdom and knowledge.” And I applied my heart to know wisdom and to know madness and folly. I perceived that this also is but a striving after wind.
For in much wisdom is much vexation,
and he who increases knowledge increases sorrow.
ESV: English Standard Version 2016