Galatians 3:19-25 New King James Version (NKJV)
Purpose of the Law
19 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. 20 Now a mediator does not mediate for one only, but God is one.
21 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. 22 But the Scripture has confined all under sin, that the promise by faith in Jesus Christ might be given to those who believe. 23 But before faith came, we were kept under guard by the law, [a]kept for the faith which would afterward be revealed. 24 Therefore the law was our [b]tutor to bring us to Christ, that we might be justified by faith. 25 But after faith has come, we are no longer under a tutor.
Galatians 3:19-25 New International Version (NIV)
19 Why, then, was the law given at all? It was added because of transgressions until the Seed to whom the promise referred had come. The law was given through angels and entrusted to a mediator. 20 A mediator, however, implies more than one party; but God is one.
21 Is the law, therefore, opposed to the promises of God? Absolutely not! For if a law had been given that could impart life, then righteousness would certainly have come by the law. 22 But Scripture has locked up everything under the control of sin, so that what was promised, being given through faith in Jesus Christ, might be given to those who believe.
Children of God
23 Before the coming of this faith,[a] we were held in custody under the law, locked up until the faith that was to come would be revealed. 24 So the law was our guardian until Christ came that we might be justified by faith. 25 Now that this faith has come, we are no longer under a guardian.