Proverbs 11:8 in the World English Bible
A righteous person is delivered out of trouble, and the wicked takes his place.
Context
7 When a wicked man dieth, his expectation shall perish: and the hope of unjust men perisheth.
8 The righteous is delivered out of trouble, and the wicked cometh in his stead.
9 An hypocrite with his mouth destroyeth his neighbour: but through knowledge shall the just be delivered.