Ecclesiastes 1:17-19

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.