Galatians 3:23

But before faith came, we were kept under guard by the law, kept for the faith which would afterward be revealed.

Surrounding context

3:22 But the Scripture has confined all under sin, that the promise by faith in Jesus Christ might be given to those who believe.

3:23 But before faith came, we were kept under guard by the law, kept for the faith which would afterward be revealed.

3:24 Therefore the law was our tutor to bring us to Christ, that we might be justified by faith.

Translation and sources