chastening

adjective
  1. serving as a corrective experience that humbles or subdues someone
noun
  1. the act of correcting or disciplining someone, especially through hardship or punishment

Examples