The mark a person leaves on the world after they pass away is a direct result of their choices and lifestyle. The deep contrast between the legacy of those who do good and those who do evil is clear not only during their lifetimes but especially in how society and history remember them.
The primary approach among commentators is that whenever people mention a righteous person, whether during their life or after their death, they bless them and praise their good deeds. Taking a different perspective, [אבן עזרא] suggests that God Himself is the one who remembers the righteous and showers them with blessing. Furthermore, the very act of mentioning a righteous person can serve as a catalyst that brings abundance and blessing to the entire world [אלשיך]. This positive memory is not static; it actually grows over time. Because righteous individuals leave behind a lasting and helpful legacy, such as aiding others or writing books, their impact continues to expand long after they are gone [רלב״ג, עמנואל הרומי].
A subtle distinction highlights the depth of this contrast [מלבי״ם]. There is a difference between a person's memory and their name. Memory relates to a person's actions and achievements, while a name represents their basic self-identity. The righteous are remembered for their great deeds. However, when it comes to those who do evil, even their most basic identity and essence are completely wiped out.
The primary approach among commentators is that the legacy of the wicked rots away into complete forgetfulness. Because people are disgusted by the thought of mentioning them, their names naturally fade and decay like useless, rotting wood. Since their entire lives revolved around temporary, material pursuits, they leave behind nothing of value and have no physical or spiritual continuation [עמנואל הרומי, מלבי״ם].
Beyond simply being forgotten, there are other ways to understand this decay. One view suggests that people actively curse the bones of the wicked to rot so that they will not experience resurrection [אמרי דעת]. Another approach views this rotting as a spiritual punishment in hell, a state where the wicked forget even their own names [אלשיך]. However, a more positive and unique perspective is that this decay is not aimed at the individuals themselves. Instead, it is a hopeful wish that the very concept of evil and the title of wickedness will rot and disappear from the world, allowing all people to eventually return to a good path and become righteous [אלשיך].