2 Peter 2:9

the Lord knows how to deliver the godly out of temptation and to keep the unrighteous under punishment for the day of judgment;

1 Corinthians 10:13

No temptation has taken you except what is common to man. God is faithful, who will not allow you to be tempted above what you are able, but will with the temptation also make the way of escape, that you may be able to endure it.

Psalm 34:15-19

The eyes of the LORD are toward the righteous. His ears listen to their cry.

2 Peter 3:7

But the heavens that now are, and the earth, by the same word have been stored up for fire, being reserved against the day of judgment and destruction of ungodly men.

Job 5:19

He will deliver you in six troubles; yes, in seven there shall no evil touch you.

Job 21:30

that the evil man is reserved to the day of calamity, That they are led forth to the day of wrath?

Psalm 4:3

But know that the LORD has set apart for himself him who is godly: The LORD will hear when I call to him.

Psalm 12:1

Help, LORD; for the godly man ceases. For the faithful fail from among the children of men.

Psalm 32:6

For this, let everyone who is godly pray to you in a time when you may be found. Surely when the great waters overflow, they shall not reach to him.

Proverbs 16:4

The LORD has made everything for its own end?yes, even the wicked for the day of evil.

Romans 2:5

But according to your hardness and unrepentant heart you are storing up for yourself wrath in the day of wrath and revelation of the righteous judgment of God;

2 Corinthians 5:10-11

For we must all appear before the judgment seat of Christ; that each one may receive the things in the body, according to what he has done, whether good or bad.

2 Timothy 3:12

Yes, and all who desire to live godly in Christ Jesus will suffer persecution.

Titus 2:14

who gave himself for us, that he might redeem us from all iniquity, and purify for himself a people for his own possession, zealous for good works.

Jude 1:14-15

About these also Enoch, the seventh from Adam, prophesied, saying, "Behold, the Lord came with ten thousands of his holy ones,

Revelation 3:10

Because you kept my command to endure, I also will keep you from the hour of testing, which is to come on the whole world, to test those who dwell on the earth.

2 Peter 2:4

For if God did not spare angels when they sinned, but cast them down to the lower parts of hell, and committed them to chains of darkness, to be reserved for judgment;

Treasury of Scripture Knowledge

Summary

The Lord knoweth how to deliver the godly out of temptations, and to reserve the unjust unto the day of judgment to be punished:

General references

Bible References

Knoweth

Job 5:19
He will deliver you in six troubles; yes, in seven there shall no evil touch you.
Psalm 34:15
The eyes of the LORD are toward the righteous. His ears listen to their cry.
1 Corinthians 10:13
No temptation has taken you except what is common to man. God is faithful, who will not allow you to be tempted above what you are able, but will with the temptation also make the way of escape, that you may be able to endure it.

The godly

Psalm 4:3
But know that the LORD has set apart for himself him who is godly: The LORD will hear when I call to him.
Psalm 12:1
Help, LORD; for the godly man ceases. For the faithful fail from among the children of men.
Psalm 32:6
For this, let everyone who is godly pray to you in a time when you may be found. Surely when the great waters overflow, they shall not reach to him.
2 Timothy 3:12
Yes, and all who desire to live godly in Christ Jesus will suffer persecution.
Titus 2:14
who gave himself for us, that he might redeem us from all iniquity, and purify for himself a people for his own possession, zealous for good works.

Unto

2 Peter 3:7
But the heavens that now are, and the earth, by the same word have been stored up for fire, being reserved against the day of judgment and destruction of ungodly men.
Romans 2:5
But according to your hardness and unrepentant heart you are storing up for yourself wrath in the day of wrath and revelation of the righteous judgment of God;
2 Corinthians 5:10
For we must all appear before the judgment seat of Christ; that each one may receive the things in the body, according to what he has done, whether good or bad.

General references

1 Samuel 29:10
Therefore now rise up early in the morning with the servants of your lord who have come with you, and go to the place which I allotted to you. And do not place an evil thing in your heart, for you are good in my sight. And as soon as you are up early in the morning, and have light, depart."
2 Corinthians 1:10
who delivered us out of so great a death, and he will deliver us. On him we have set our hope that he will also deliver us again;