Ecclesiastes 2:11

New International Version - UK Bible (NIVUK)
Yet when I surveyed all that my hands had done
    and what I had toiled to achieve,
everything was meaningless, a chasing after the wind;
    nothing was gained under the sun.

Wisdom and folly are meaningless

Read Ecclesiastes 2:11 in other translations