Book of Ecclesiastes

Ecclesiastes 2:18

King James Version
18 Yea, I hated all my labour which I had taken under the sun: because I should leave it unto the man that shall be after me.