Proverbs 21:11

11 When the 1scoffer is punished, the naive becomes wise; But when the wise is instructed, he receives knowledge.