Just deserts

If a bad or evil person gets their just deserts, they get the punishment or suffer the misfortune that it is felt they deserve.