It quickly becomes clear after the Flood that God did not preserve Noah and his family on the ark because of their own merits, but out of his grace.
Music Credit: J. S. Bach, “Wir eilen mit schwachen, doch emsigen Schritten,” aria from “Jesu, der du meine Seele,” BWV 78 (Leipzig, 1724).