Galatians 3:22-24

KJV(i) 22 But the scripture hath concluded all under sin, that the promise by faith of Jesus Christ might be given to them that believe. 23 But before faith came, we were kept under the law, shut up unto the faith which should afterwards be revealed. 24 Wherefore the law was our schoolmaster to bring us unto Christ, that we might be justified by faith.