Ecclesiastes 2:17

17 So I hated life; because the work that was wrought under the sun was evil before me: for all is vanity and waywardness of spirit.

Ecclesiastes 2:17 In-Context

15 And I said in my heart, As the event of the fool is, so shall it be to me, even to me: and to what purpose have I gained wisdom? I said moreover in my heart, This is also vanity, because the fool speaks of his abundance.
16 For there is no remembrance of the wise man with the fool for ever; forasmuch as now the coming days all things are forgotten: and how shall the wise man die with the fool?
17 So I hated life; because the work that was wrought under the sun was evil before me: for all is vanity and waywardness of spirit.
18 And I hated the whole of my labour which I took under the sun; because I must leave it to the man who will come after me.
19 And who knows whether he will be a wise or a fool? and whether he will have power over all my labour in which I laboured, and wherein I grew wise under the sun? this is also vanity.

The Brenton translation of the Septuagint is in the public domain.