I'm trying to sort out my ideas, so bear with me here if my questions is not abundantly clear.
There's a Christian understanding that when one dies, only the body dies, therefore, the spirit remains, hence the person "lives forever" both spiritually and in the memory of others.
In pop cultures there's multiple reference to this. For instance, in Kendrick Lamar's song, "The one in front of the gun lives forever."
However, I'm trying to find philosophers who had criticized directly this notion of (1) preservation of personal identity after death and (2) preservation in the memory of others.
This former one is the most popular one and easier to find information on. However, very few talk about the "preservation in the memory of others" as having a value.
I'm trying to argue that if I was a moral egoist, there's no point for me to sacrifice myself for others since living in the memory of others is not a worthwhile substitute to living a worthwhile life.