Proverbs 11:8

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