Ecclesiastes 1:17-18 English Standard Version (ESV)

17. 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.

18. For in much wisdom is much vexation,and he who increases knowledge increases sorrow.

Ecclesiastes 1