chastening

ˈtʃeɪs(ə)nɪŋ

adjective

(of a rebuke or misfortune) having a restraining or humbling effect.

a chastening experience