For all who rely on the works of the law are under a curse; for it is written, "Cursed is everyone who does not observe and obey all the things written in the book of the law."
Now it is evident that no one is justified before God by the law; for "The one who is righteous will live by faith."
References for Galatians 3:11
But the law does not rest on faith; on the contrary, "Whoever does the works of the law will live by them."
References for Galatians 3:12
Christ redeemed us from the curse of the law by becoming a curse for us—for it is written, "Cursed is everyone who hangs on a tree"—
in order that in Christ Jesus the blessing of Abraham might come to the Gentiles, so that we might receive the promise of the Spirit through faith.