Book of Ecclesiastes

Ecclesiastes 1:17

King James Version
17 And I gave my heart to know wisdom, and to know madness and folly: I perceived that this also is vexation of spirit.