Ecclesiastes 2:17-23 NLT

17 So now I hate life because everything done here under the sun is so irrational. Everything is meaningless, like chasing the wind.
18 I am disgusted that I must leave the fruits of my hard work to others.
19 And who can tell whether my successors will be wise or foolish? And yet they will control everything I have gained by my skill and hard work. How meaningless!
20 So I turned in despair from hard work. It was not the answer to my search for satisfaction in this life.
21 For though I do my work with wisdom, knowledge, and skill, I must leave everything I gain to people who haven't worked to earn it. This is not only foolish but highly unfair.
22 So what do people get for all their hard work?
23 Their days of labor are filled with pain and grief; even at night they cannot rest. It is all utterly meaningless.