When the pestilent is punished, a little one will become wiser. And if he pursues what is wise, he will receive knowledge
Other versions
King James Version
When the scorner is punished, the simple is made wise: and when the wise is instructed, he receiveth knowledge.English Standard Version
When a scoffer is punished, the simple becomes wise; when a wise man is instructed, he gains knowledge.New International Version
When a mocker is punished, the simple gain wisdom; when a wise man is instructed, he gets knowledge.