Ecclesiastes 2:15-17 New King James Version (NKJV)
15 So I said in my heart,
“As it happens to the fool,
It also happens to me,
And why was I then more wise?”
Then I said in my heart,
“This also is vanity.”
16 For there is no more remembrance of the wise than of the fool forever,
Since all that now is will be forgotten in the days to come.
And how does a wise man die?
As the fool!
17 Therefore I hated life because the work that was done under the sun was distressing to me, for all is vanity and grasping for the wind.