Ecclesiastes 1:17-19

17 And I gave my heart to getting knowledge of wisdom, and of the ways of the foolish. And I saw that this again was desire for wind.

18 Because in much wisdom is much grief, and increase of knowledge is increase of sorrow.