Ecclesiastes 1:13; Ecclesiastes 1:16-18

13 I applied my mind to seek and explore through wisdom all that is done under heaven. God has given people this miserable task to keep them occupied.
16 I said to myself, "Look, I have amassed wisdom far beyond all those who were over Jerusalem before me, and my mind has thoroughly grasped wisdom and knowledge." 17 I applied my mind to know wisdom and knowledge, madness and folly; I learned that this too is a pursuit of the wind. 18 For with much wisdom is much sorrow; as knowledge increases, grief increases.