Ecclesiastes 2:15-17 World English Bible (WEB)
15 Then I said in my heart, “As it happens to the fool, so will it happen even to me; and why was I then more wise?” Then I said in my heart that this also is vanity. 16 For of the wise man, even as of the fool, there is no memory forever, since in the days to come all will have been long forgotten. Indeed, the wise man must die just like the fool!
17 So I hated life, because the work that is worked under the sun was grievous to me; for all is vanity and a chasing after wind.