The author of Ecclesiastes has an obsession, or fear, of dying. He writes on it often.
Death is in fact the arch enemy of the rich and successful. Death levels the playing field of all peoples in their final moments.
The author of Ecclesiastes does observe that some ways of living are better than others, but he instructs us not to take our pride to seriously in this regard. No matter how wise or foolish you are in living life, we all lose everything to death in the end. Complimentary to this thought in New Testament theology is Jesus’ words in Matthew 11.25, “I praise you, Father, Lord of heaven and earth, because you have hidden these things from the wise and learned, and revealed them to little children.” Just as death is loss that levels all, faith is win that lifts all. There’s not a lot of room to pride yourself in how you live life.
13 I saw that wisdom is better than folly,
just as light is better than darkness.
14 The wise man has eyes in his head,
while the fool walks in the darkness;
but I came to realize
that the same fate overtakes them both.
15 Then I thought in my heart,
“The fate of the fool will overtake me also.
What then do I gain by being wise?”
I said in my heart,
“This too is meaningless.”
16 For the wise man, like the fool, will not be long remembered;
in days to come both will be forgotten.
Like the fool, the wise man too must die!