comeupance
/kəmˈʌpəns/Definitions
1. noun
the state or experience of being punished or penalized for one’s wrongdoing or bad behavior
“The company’s financial troubles served as a comeuppance for its reckless spending habits.”
2. noun
a punishment or penalty that is deservedly inflicted on someone
“The corrupt politician received a comeuppance in the form of a prison sentence.”