get one's comeuppance
Receive the treatment one deserves, especially punishment or retribution. For example, She behaved badly, but I'm sure she'll get her comeuppance soon. The exact relationship of comeuppance to the verb come up in its common senses—“rise” and “present itself”—is no longer clear. [Mid-1800s]