Galatians 3:10

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.

Galatians 3:24

3:24 Thus the law had become our guardian until Christ, so that we could be declared righteous by faith.