Proverbs 21:11,12 (KJV)
11 When the scorner is punished, the simple is made wise: and when the wise is instructed, he receiveth knowledge.
12 The righteous man wisely considereth the house of the wicked: but God overthroweth the wicked for their wickedness.