Galatians 3:24 KJV

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