12 So I decided to compare wisdom with foolishness and madness (for who can do this better than I, the king? ). 13 I thought, "Wisdom is better than foolishness, just as light is better than darkness. 14 For the wise can see where they are going, but fools walk in the dark." Yet I saw that the wise and the foolish share the same fate. 15 Both will die. So I said to myself, "Since I will end up the same as the fool, what's the value of all my wisdom? This is all so meaningless!" 16 For the wise and the foolish both die. The wise will not be remembered any longer than the fool. In the days to come, both will be forgotten.

17 So I came to hate life because everything done here under the sun is so troubling. Everything is meaningless-like chasing the wind.

Matthew Henry's Commentary on Ecclesiastes 2:12-17

Commentary on Ecclesiastes 2:12-17

(Read Ecclesiastes 2:12-17)

Solomon found that knowledge and prudence were preferable to ignorance and folly, though human wisdom and knowledge will not make a man happy. The most learned of men, who dies a stranger to Christ Jesus, will perish equally with the most ignorant; and what good can commendations on earth do to the body in the grave, or the soul in hell? And the spirits of just men made perfect cannot want them. So that if this were all, we might be led to hate our life, as it is all vanity and vexation of spirit.