Proverbs 11:8

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