God gave the law originally as a railroad track to guide Israel's obedience. The engine that was supposed to pull a person along the track was God's grace, the power of the Spirit. And the coupling between our car and the engine was faith, so that in the Old Testament, like the New Testament, salvation was by grace, through faith, along the track of obedience (or sanctification).
John Piper