Ecclesiastes 2:10-12 English Standard Version (ESV)

10. And whatever my eyes desired I did not keep from them. I kept my heart from no pleasure, for my heart found pleasure in all my toil, and this was my reward for all my toil.

11. Then I considered all that my hands had done and the toil I had expended in doing it, and behold, all was vanity and a striving after wind, and there was nothing to be gained under the sun.

12. So I turned to consider wisdom and madness and folly. For what can the man do who comes after the king? Only what has already been done.

Ecclesiastes 2