You searched for: “elegy
elegy, eulogy
elegy (EL uh jee) (noun)
Chiefly, a poem of sorrow for the dead: Thomas Gray wrote a famous elegy which is often quoted at funerals.
eulogy (YOO luh jee) (noun)
High praise, written or spoken, usually about someone who has died: The speech was so full of praise for the president, it sounded like a eulogy instead of a nomination speech.

Eulogy is praise that is usually too much and too late.

—Evan Esar

The politician delivered a eulogy for his former friend. In his eulogy, he quoted a lovely elegy which had been written more than a century ago.