Ecclesiastes 2
17 Ref So I was hating life, because everything under the sun was evil to me: all is to no purpose and desire for wind.
18 Ref Hate had I for all my work which I had done, because the man who comes after me will have its fruits.
19 Ref And who is to say if that man will be wise or foolish? But he will have power over all my work which I have done and in which I have been wise under the sun. This again is to no purpose.