9 if this is so, then the Lord knows how to rescue the godly from trials and to hold the unrighteous for punishment on the day of judgment.

Read 2 Peter 2:9 Using Other Translations

The Lord knoweth how to deliver the godly out of temptations, and to reserve the unjust unto the day of judgment to be punished:
then the Lord knows how to rescue the godly from trials, and to keep the unrighteous under punishment until the day of judgment,
So you see, the Lord knows how to rescue godly people from their trials, even while keeping the wicked under punishment until the day of final judgment.