Galatians 3:24

24 So that the law was our custodian until Christ came, that we might be justified by faith.

Galatians 3:24 In-Context

22 But the scripture consigned all things to sin, that what was promised to faith in Jesus Christ might be given to those who believe.
23 Now before faith came, we were confined under the law, kept under restraint until faith should be revealed.
24 So that the law was our custodian until Christ came, that we might be justified by faith.
25 But now that faith has come, we are no longer under a custodian;
26 for in Christ Jesus you are all sons of God, through faith.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.