Ecclesiastes 1:16-18

16 I communed with my own heart, saying, Lo, I have gotten for me great wisdom above all who were before me in Jerusalem. Yea, my heart has had great experience of wisdom and knowledge.

17 And I applied my heart to know wisdom, and to know madness and folly. I perceived that this also was a striving after wind.

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