Galatians 3:24

24 Let me put it another way. The law was our guardian until Christ came; it protected us until we could be made right with God through faith.

Galatians 3:24 In-Context

22 But the Scriptures declare that we are all prisoners of sin, so we receive God’s promise of freedom only by believing in Jesus Christ.
23 Before the way of faith in Christ was available to us, we were placed under guard by the law. We were kept in protective custody, so to speak, until the way of faith was revealed.
24 Let me put it another way. The law was our guardian until Christ came; it protected us until we could be made right with God through faith.
25 And now that the way of faith has come, we no longer need the law as our guardian.
26 For you are all children of God through faith in Christ Jesus.
Holy Bible. New Living Translation copyright© 1996, 2004, 2007, 2013 by Tyndale House Foundation. Used by permission of Tyndale House Publishers Inc., Carol Stream, Illinois 60188. All rights reserved.