Proverbs 21:12 in the King James Version
The righteous man wisely considereth the house of the wicked: but God overthroweth the wicked for their wickedness.
Context
11 When the mocker is punished, the simple gains wisdom. When the wise is instructed, he receives knowledge.
12 The Righteous One considers the house of the wicked, and brings the wicked to ruin.
13 Whoever stops his ears at the cry of the poor, he will also cry out, but shall not be heard.