Ecclesiastes 1:16-18 (NIV)
16 I said to myself, “Look, I have increased in wisdom more than anyone who has ruled over Jerusalem before me; I have experienced much of wisdom and knowledge.” 17 Then I applied myself to the understanding of wisdom, and also of madness and folly, but I learned that this, too, is a chasing after the wind. 18 For with much wisdom comes much sorrow; the more knowledge, the more grief.