Proverbs 11:8 - Kjv

The righteous is delivered out of trouble, and the wicked cometh in his stead.