‏ Proverbs 21:11

11When aa scoffer is punished, the simple becomes wise;
when a wise man is instructed, he gains knowledge.
Copyright information for ESV