Proverbs 21:11

:

When the mocker is punished, the simple gains wisdom. When the wise is instructed, he receives knowledge.