message of condolence; memorial address
A formal written or spoken expression of grief, often delivered at a funeral or memorial service. Similar to 弔辞 (ちょうじ), but 哀辞 can have a slightly more literary or personal tone.
See also: 弔辞
I delivered a memorial address for my friend at the funeral.
He wrote a message of condolence for the deceased.