Proverbs 21:18 NLT

18 Sometimes the wicked are punished to save the godly, and the treacherous for the upright.