Proverbs 21:11

21:11 When the mocker is punished, the simple gains wisdom; When the wise is instructed, he receives knowledge.
-World English Bible

Other Translation

21:11 When the scorner is punished, the simple is made wise: and when the wise is instructed, he receiveth knowledge.
-King James Version