Galatians 3:23 NLT

23 Until faith in Christ was shown to us as the way of becoming right with God, we were guarded by the law. We were kept in protective custody, so to speak, until we could put our faith in the coming Savior.