Proverbs 21:11

21:11 When a scorner is punished, the naive becomes wise;

when a wise person is instructed, he gains knowledge.