Galatians 3:10-12
3:10 For all who rely on doing the works of the law are under a curse, because it is written, “Cursed is everyone who does not keep on doing everything written in the book of the law.”
3:11 Now it is clear no one is justified before God by the law, because the righteous one will live by faith.
3:12 But the law is not based on faith, but the one who does the works of the law will live by them.
Galatians 3:21-25
3:21 Is the law therefore opposed to the promises of God? Absolutely not! For if a law had been given that was able to give life, then righteousness would certainly have come by the law.
3:22 But the scripture imprisoned everything and everyone under sin so that the promise could be given – because of the faithfulness of Jesus Christ – to those who believe.
Sons of God Are Heirs of Promise
3:23 Now before faith came we were held in custody under the law, being kept as prisoners until the coming faith would be revealed.
3:24 Thus the law had become our guardian until Christ, so that we could be declared righteous by faith.
3:25 But now that faith has come, we are no longer under a guardian.