John Gill's Exposition of the Whole Bible
Ecclesiastes 2:16
For [there is] no remembrance of the wise more than of the fool for ever,.... The Targum interprets it, in the world to come; but even in this world the remembrance of a wise man, any more than of a fool, does not always last; a wise man may not only be caressed in life, but may be remembered after death for a while; the fame of him may continue for a little time, and his works and writings may be applauded; but by and by rises up another genius brighter than he, or at least is so thought, and outshines him; and then his fame is obscured, his writings are neglected and despised, and he and his works buried in oblivion; and this is the common course of things. This shows that Solomon is speaking of natural wisdom, and of man's being wise with respect to that; and his remembrance on that account; otherwise such who are truly good and wise, their memory is blessed; they are had in everlasting remembrance, and shall never be forgotten in this world, nor in that to come, when the memory of the wicked shall rot; whose names are only written in the dust Jeremiah 17:13, and not in the Lamb's book of life;
seeing that which now [is], in the days to come shall all be forgotten: what now is in the esteem of men, and highly applauded by them; what is in the mouths of men, and in their minds and memories, before long, future time, after the death of a man, as the Targum, or in some time after, will be thought of no more, and be as if it never had been, or as if there never had been such men in the world. Many wise men have been in the world, whose names are now unknown, and some their names only are known, and their works are lost; and others whose works remain, yet in no esteem: this is to be understood in general, and for the most part; otherwise there may be some few exceptions to this general observation.
And how dieth the wise [man]? as the fool; they are both liable to death; it is appointed for men, rinse or unwise, learned or unlearned, to die, and both do die; wisdom cannot secure a man from dying; and then wise and fools are reduced to the same condition and circumstances; all a man's learning, knowledge, and wisdom, cease when he dies, and he is just as another man is; in that day all his learned thoughts perish, and he is upon a level with the fool. Solomon, the wisest of men, died as others; a full proof of his own observation, and which his father made before him, Psalms 49:10. But this is not true of one that is spiritually wise, or wise unto salvation; the death of a righteous man is different from the death of a wicked man; both die, yet not alike, not in like manner; the good man dies in Christ, he dies in faith, has hope in his death, and rises again to eternal life. The Targum is,
"and how shall the children of men say, that the end of the righteous is as the end of the wicked?''