Let us see the wisdom of 2 Peter 2:
4 2 3 For if God did not spare the angels when they sinned, but condemned them to the chains of Tartarus and handed them over to be kept for judgment;
5 4 and if he did not spare the ancient world, even though he preserved Noah, a herald of righteousness, together with seven others, when he brought a flood upon the godless world; 6 and if he condemned the cities of Sodom and Gomorrah (to destruction), reducing them to ashes, making them an example for the godless (people) of what is coming; 7 and if he rescued Lot, a righteous man oppressed by the licentious conduct of unprincipled people 8 (for day after day that righteous man living among them was tormented in his righteous soul at the lawless deeds that he saw and heard), 9 then the Lord knows how to rescue the devout from trial and to keep the unrighteous under punishment for the day of judgment,
10 5 and especially those who follow the flesh with its depraved desire and show contempt for lordship. 6 Bold and arrogant, they are not afraid to revile glorious beings,
11 7 whereas angels, despite their superior strength and power, do not bring a reviling judgment against them from the Lord.
Both Noah and Lot were Judged to be righteous in the eyes of God, in the middle of unrighteous people. How were they righteous? By their righteous deeds in the middle of unrighteous behaviour. This whole chapter shows the condemnation of those who commit unrighteous deeds. Thank you for pointing this out to me once again.
God does use the unbeliever, the heretic and the pagan to strengthen Christian beliefs, doesn't He?
And Lot's righteous deeds were?