Galatians 3
21 Ref Is the law then against the words of God? in no way; because if there had been a law which was able to give life, truly righteousness would have been by the law.
22 Ref However, the holy Writings have put all things under sin, so that that for which God gave the undertaking, based on faith in Jesus Christ, might be given to those who have such faith.
23 Ref But before faith came, we were kept in prison under the law, waiting for the revelation of the faith which was to come.
24 Ref So the law has been a servant to take us to Christ, so that we might have righteousness by faith.
25 Ref But now that faith is come, we are no longer under a servant.