poetic justice
noun
Meaning
The rewarding of virtue, and the punishment of vice, especially in an ironic manner.
Synonyms