Galatians 3:22-23 (WEB)
22 But the Scripture imprisoned all things under sin, that the promise by faith in Jesus Christ might be given to those who believe.
23 But before faith came, we were kept in custody under the law, confined for the faith which should afterwards be revealed.
About Galatians 3: Galatians chapter three serves as the theological hinge of Paul’s letter to the churches in Galatia. He moves from his personal defense to the hard truth of the gospel. The chapter argues that we are saved by faith, not by keeping the law. Paul reminds the believers that they received the Spirit through hearing with faith, not by doing works. He uses Abraham as the prime example of this truth. Read the study notes
2 verses · Compare in parallel · Read all of Galatians 3