2 Peter 2:9

then the Lord knows how to deliver the godly out of temptations and to reserve the unjust under punishment for the day of judgment,

Surrounding context

2:8 (for that righteous man, dwelling among them, tormented his righteous soul from day to day by seeing and hearing their lawless deeds)--

2:9 then the Lord knows how to deliver the godly out of temptations and to reserve the unjust under punishment for the day of judgment,

2:10 and especially those who walk according to the flesh in the lust of uncleanness and despise authority. They are presumptuous, self-willed. They are not afraid to speak evil of dignitaries,

Translation and sources