Ecclesiastes 1:17

And I have dedicated my heart, so that I may know prudence and doctrine, and also error and foolishness. Yet I recognize that, in these things also, there is hardship, and affliction of the spirit

Other versions

King James Version

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

English Standard Version

And I applied my heart to know wisdom and to know madness and folly. I perceived that this also is but a striving after wind.

New International Version

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.