get (one's) just deserts
To receive that which one deserves, especially a punishment of unfavorable outcome. (Note: the phrase is often misspelled as "just desserts," due to the pronunciation of "deserts" being the same as "desserts" in this context.) The CEO cheated his clients out of nearly $4 million, but he got his just deserts when he was stripped of everything he owned and sent to prison for life.
get your (just) deˈserts
get what you deserve, especially when it is something bad: The family of the victim said that the killer had got his just deserts when he was jailed for life. Deserts is an old-fashioned word for the rewards or punishments that somebody deserves.