epitaph
US /ˈep.ə.tæf/
UK /ˈep.ə.tæf/

1.
a phrase or statement written in memory of a person who has died, especially as an inscription on a tombstone
:
•
The old tombstone had a simple epitaph carved into it.
•
His humorous epitaph made everyone smile despite their grief.