Galatians 3:22

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.

Galatians 3:22 In-Context

20 Now a mediator is helpful if more than one party must reach an agreement. But God, who is one, did not use a mediator when he gave his promise to Abraham.
21 Is there a conflict, then, between God’s law and God’s promises? Absolutely not! If the law could give us new life, we could be made right with God by obeying it.
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.
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.