Galatians 3:22-24

22But the Scripture aimprisoned everything under sin, so that bthe promise by faith in Jesus Christ might be given cto those who believe.

23Now before faith came, we were held captive under the law, dimprisoned until the coming faith would be revealed. 24So then, ethe law was our fguardian until Christ came, gin order that we might be justified by faith.
Copyright information for ESV