Ecclesiastes 2:17 KJV
Therefore I hated life; because the work that is wrought under the sun is grievous unto me: for all is vanity and vexation of spirit.
Ecclesiastes 2:17, King James Version
In context
16 For there is no remembrance of the wise more than of the fool for ever; seeing that which now is in the days to come shall all be forgotten. And how dieth the wise man? as the fool.
17 Therefore I hated life; because the work that is wrought under the sun is grievous unto me: for all is vanity and vexation of spirit.
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.