Galatians 3:8

3:8 And the scripture, foreseeing that God would justify the Gentiles by faith, proclaimed the gospel to Abraham ahead of time, saying, “All the nations will be blessed in you.”

Galatians 3:11-14

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. 3:13 Christ redeemed us from the curse of the law by becoming a curse for us (because it is written, “Cursed is everyone who hangs on a tree”) 3:14 in order that in Christ Jesus the blessing of Abraham would come to the Gentiles, so that we could receive the promise of the Spirit by faith.

Galatians 3:24

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