Ecclesiastes 2:9-12

YLT(i) 9 And I became great, and increased above every one who had been before me in Jerusalem; also, my wisdom stood with me. 10 And all that mine eyes asked I kept not back from them; I withheld not my heart from any joy, for my heart rejoiced because of all my labour, and this hath been my portion, from all my labour, 11 and I have looked on all my works that my hands have done, and on the labour that I have laboured to do, and lo, the whole is vanity and vexation of spirit, and there is no advantage under the sun!
12 And I turned to see wisdom, and madness, and folly, but what is the man who cometh after the king? that which is already—they have done it!