chastening — A chastening experience makes you regret that you have behaved badly or stupidly.
chastisement — Chastisement is the same as punishment.
comeuppance — If you say that someone has got their comeuppance, you approve of the fact that they have been punished or have suffered for something wrong that they have done.
compensation — Compensation is money that someone who has experienced loss or suffering claims from the person or organization responsible, or from the state.
deserving — If you describe a person, organization, or cause as deserving, you mean that you think they should be helped.
discipline — training to act in accordance with rules; drill: military discipline.