Ecclesiastes 2:19

New International Version - UK Bible (NIVUK)
And who knows whether that person will be wise or foolish? Yet they will have control over all the fruit of my toil into which I have poured my effort and skill under the sun. This too is meaningless.

Read Ecclesiastes 2:19 in other translations