Ecclesiastes 2:18 GNT

18 Nothing that I had worked for and earned meant a thing to me, because I knew that I would have to leave it to my successor,