Galatians 3:22-24

ACV(i) 22 But scripture confined all things under sin, so that the promise from faith in Jesus Christ might be given to those who believe. 23 But before faith came we were kept in custody under law, having been confined for faith that was going to be revealed. 24 So that the law became our schoolmaster for Christ, so that we might be made righteous from faith.