Galatians 3:24

24 Wherefore the law was our schoolmaster to bring us unto Christ, that we might be justified by faith.

Galatians 3:24 In-Context

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.
25 But after that faith is come, we are no longer under a schoolmaster.
26 For ye are all the children of God by faith in Christ Jesus.
The King James Version is in the public domain.