NET
24 Thus the law had become our guardian until Christ, so that we could be declared righteous by faith.
Darby
24 So that the law has been our tutor up to Christ, that we might be justified on the principle of faith.
KJV
24 Wherefore the law was our schoolmaster [to bring us] unto Christ, that we might be justified by faith.