בַּעְנָשׁ־לֵ֭ץ יֶחְכַּם־פֶּ֑תִי וּבְהַשְׂכִּ֥יל לְ֝חָכָ֗ם יִקַּח־דָּֽעַת׃
褻慢的人受懲罰,愚蒙的人就得智慧;智慧人受了教導,便得著知識。
Rashi
When a scorner is punished, a fool gains wisdom Through the chastisements of scorners, fools gain wisdom and return [to God] in repentance.