Galatians 3:10, 13, 24
Galatians 3:13 NIV
Christ redeemed us from the curse of the law by becoming a curse for us, for it is written: “Cursed is everyone who is hung on a pole.”
Galatians 3:24 NIV
So the law was our guardian until Christ came that we might be justified by faith.