Proverbs 21:11

CAB(i) 11 When an intemperate man is punished the simple becomes wiser, and a wise man understanding will receive knowledge.