Ecclesiastes 1:16-18 WEB

16 I said to myself, "Behold, I have obtained for myself great wisdom above all who were before me in Jerusalem. Yes, my heart has had great experience of wisdom and knowledge."
17 I applied my heart to know wisdom, and to know madness and folly. I perceived that this also was a chasing after wind.
18 For in much wisdom is much grief; and he who increases knowledge increases sorrow.