Proverbs 11:8

ESV
The righteous is delivered from trouble, and the wicked walks into it instead.