The notion that, under the Old Covenant, men and women were saved by keeping the law...well, that is not true. Anyone who was "saved" (whether past, present, or future) under the OC was saved by faith, through the grace of God.
And the same thing is true under the NC. Nobody was ever saved...