Galatians 3:24 CEB

24 so that the Law became our custodian until Christ so that we might be made righteous by faith.