The LORD preserved the life of Noah and his family during the flood that destroyed the earth because Noah was righteous in HIS eyes.
Psalm 37:39-40
The LORD saves the righteous and protects them in times of trouble. He helps them and rescues them; he saves them from the wicked, because they go to him for protection.
Psalm 31:23
Love the LORD, all you his saints! The LORD preserves the faithful but abundantly repays the one who acts in pride.