Galatians 3:23-25

23 But before faith came, we were under the law, shut up unto the faith which should afterwards be revealed.

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

25 But when faith is come, we are no longer under [the hand] of the schoolmaster.