have the last laugh

📖 general
Meaning
to ultimately succeed or have the final advantage in a situation
Literal Meaning
to be the one who laughs last, implying victory
Example
“They doubted her abilities, but she had the last laugh when she got the promotion.”