In Oedipus Rex (lines 236–250), Oedipus curses Laius’s killer:
“Upon the murderer I invoke this curse...
may he wear out his life in misery...
If with my knowledge he lives at my hearth,
I pray that I myself may feel my curse.”
Then he says: “These words I speak not idly” (or similar translation; the Greek emphasizes solemn oath).
The “idle words” disclaimer becomes the ultimate dramatic irony: every word binds him tighter. The curse is a performative utterance that enacts its own fulfillment.