"Now I began a study of the comparative virtues of wisdom and folly, and anyone else would come to the same conclusion I did that wisdom is of more value than foolishness, just as light is better than darkness; for the wise man sees, while the fool is blind. And yet I noticed that there was one thing that happened to wise and foolish alike— just as the fool will die, so will I. So of what value is all my wisdom? Then I realized that even wisdom is futile. For the wise and fool both die, and in the days to come both will be long forgotten." - Ecclesiastes 2: 12-16
Solomon takes his musing to another level when he notes that both the wise and foolish share the same fate. We will all pass away. This seems to make him thoroughly depressed and makes him question the need to gain wisdom.
I personally believe that it is important to know the brevity of life, and that we all will end up experiencing death, but that this fact should motivate us to make wise decisions while we can. The decisions we make can impact the quality of our lives - foolish decisions can only complicate our lives.
Living in Grace