Famous-last-words Definition

noun

A notable final utterance before death, especially one made by a celebrity or historical figure.

Wiktionary

(figuratively, expressing sarcasm) A statement which is overly optimistic, results from overconfidence, or lacks realistic foresight.

Wiktionary