Ecclesiastes 2:18-20 NLT
[18] I came to hate all my hard work here on earth, for I must leave to others everything I have earned. [19] And who can tell whether my successors will be wise or foolish? Yet they will control everything I have gained by my skill and hard work under the sun. How meaningless! [20] So I gave up in despair, questioning the value of all my hard work in this world.
https://bible.com/bible/116/ecc.2.18-20.NLT