Proverbs 17:27

17:27 The truly wise person restrains his words,

and the one who stays calm is discerning.

Proverbs 21:11

21:11 When a scorner is punished, the naive becomes wise;

when a wise person is instructed, he gains knowledge.