Ecclesiastes 2:15-17 Amplified Bible, Classic Edition (AMPC)
15 Then said I in my heart, As it happens to the fool, so it will happen even to me. And of what use is it then for me to be more wise? Then I said in my heart, This also is vanity (emptiness, vainglory, and futility)!
16 For of the wise man, the same as of the fool, there is no permanent remembrance, since in the days to come all will be long forgotten. And how does the wise man die? Even as the fool!
17 So I hated life, because what is done under the sun was grievous to me; for all is vanity and a striving after the wind and a feeding on it.