Galatians 3:23
But before faith came, we were kept in ward under the law,—Faith came with Christ. God dealt with Abraham by the law of faith; on account of sins he substituted the law of works through Moses. The law remained in force till Christ came and through him the law of faith was again restored as a means of justification. But before faith came in Christ Jesus, “we [Jews] were kept in ward under the law”—kept under it as a child is kept under a tutor, directed and trained by him, fitted for the faith should afterward be revealed in Christ. So the law of Moses served as a tutor to fit and train the Jewish people, or those who kept it, for Christ. This was the mission of the law. The Jews transgressed, fell away from God, and became so given over to the flesh and to the hardness of heart that they could not act from faith; but without faith the heart could not be purified nor the soul trust in God, so God placed them under the law of Moses to train them to obedience through the law of works, which required fleshly obedience to a law that controlled the actions of the body for temporal ends, but through this discipline gradually fitted men to exercise faith in Jesus Christ, and to lift up the spirit and prepare it to act on eternal motives in accord with spiritual laws.
shut up unto the faith which should afterwards be revealed.—The law of works, while it served this purpose to the Jews to bring them to Christ, the same scriptures now help us as examples, and by the application in the Old Testament, to understand the operation and application of the law of faith.