What purpose then does the law serve? It was added because of transgressions, till the Seed should come to whom the promise was made; and it was appointed through angels by the hand of a mediator. Now a mediator does not mediate for one only, but God is one.
Is the law then against the promises of God? Certainly not! For if there had been a law given which could have given life, truly righteousness would have been by the law. But the Scripture has confined all under sin, that the promise by faith in Jesus Christ might be given to those who believe. But before faith came, we were kept under guard by the law, kept for the faith which would afterward be revealed. Therefore the law was our tutor to bring us to Christ, that we might be justified by faith. But after faith has come, we are no longer under a tutor.
For you are all sons of God through faith in Christ Jesus. For as many of you as were baptized into Christ have put on Christ. There is neither Jew nor Greek, there is neither slave nor free, there is neither male nor female; for you are all one in Christ Jesus. And if you are Christ’s, then you are Abraham’s seed, and heirs according to the promise.
Galatians 3:19-29 NKJV