Galatians 3:1-14 (ESV)
By Faith, or by Works of the Law?
3:1 O foolish Galatians! Who has bewitched you? It was before your eyes that Jesus Christ was publicly portrayed as crucified. 2 Let me ask you only this: Did you receive the Spirit by works of the law or by hearing with faith? 3 Are you so foolish? Having begun by the Spirit, are you now being perfected by  the flesh? 4 Did you suffer  so many things in vain—if indeed it was in vain? 5 Does he who supplies the Spirit to you and works miracles among you do so by works of the law, or by hearing with faith— 6 just as Abraham “believed God, and it was counted to him as righteousness”?
7 Know then that it is those of faith who are the sons of Abraham. 8 And the Scripture, foreseeing that God would justify  the Gentiles by faith, preached the gospel beforehand to Abraham, saying, “In you shall all the nations be blessed.” 9 So then, those who are of faith are blessed along with Abraham, the man of faith.
The Righteous Shall Live by Faith
10 For all who rely on works of the law are under a curse; for it is written, “Cursed be everyone who does not abide by all things written in the Book of the Law, and do them.” 11 Now it is evident that no one is justified before God by the law, for “The righteous shall live by faith.”  12 But the law is not of faith, rather “The one who does them shall live by them.” 13 Christ redeemed us from the curse of the law by becoming a curse for us—for it is written, “Cursed is everyone who is hanged on a tree”— 14 so that in Christ Jesus the blessing of Abraham might come to the Gentiles, so that we might receive the promised Spirit  through faith.