Proverbs 11:8

11:8 The righteous person is delivered out of trouble,

and the wicked turns up in his stead.