For if God spared not the angels that sinned, but cast them down to hell, and delivered them into chains of darkness, to be reserved unto judgment; and spared not the old world, but saved Noah the eighth person, a preacher of righteousness, bringing in the flood upon the world of the ungodly; and turning the cities of Sodom and Gomorrha into ashes condemned them with an overthrow, making them an ensample unto those that after should live ungodly; and delivered just Lot, vexed with the filthy conversation of the wicked: (for that righteous man dwelling among them, in seeing and hearing, vexed his righteous soul from day to day with their unlawful deeds;) the Lord knoweth how to deliver the godly out of temptations, and to reserve the unjust unto the day of judgment to be punished: but chiefly them that walk after the flesh in the lust of uncleanness, and despise government. Presumptuous are they, selfwilled, they are not afraid to speak evil of dignities.
2 Peter 2:4-10
Apostle Peter is writing in this second chapter about false teachers leading people astray from the truth of the gospel. He tells of their fate, their end, their demise and eternal destruction. He also tells us that in the historical past that God did not spare angels that sinned against Him, He spared only eight people from the destruction of the world wide flood, and out of the destruction of Sodom and Gomorrha He deliverd Lot, (that righteous man dwelling among them.
The Lord knows His own. He knows the ones He has redeemed unto Himself, and He will deliver us from the sins of this darkness. It will not be without great distress, and chaos in this world.
The Lord knows how to deliver the godly, the righteous ones who have been made righteous by the blood of Jesus Christ dying on the cross for our sins, He was buried, and buried He carried our sins far away, and He rose again, and by rising from the dead He justified those who come to Him, and that is forever.
He knows how to deliver the godly.
You might want to read the Epistle of Jude along with this.