God decides to destroy the earth with a flood but spares Noah’s family because of Noah’s righteousness.