Galatians 3:23

23 But before faith came, we were detained under the law, imprisoned until the coming faith was revealed.

Galatians 3:23 In-Context

21 Therefore [is] the law opposed to the promises of God? May it never be! For if a law had been given that was able to give life, certainly righteousness would have been from the law.
22 But the scripture imprisoned all under sin, in order that the promise could be given by faith in Jesus Christ to those who believe.
23 But before faith came, we were detained under the law, imprisoned until the coming faith was revealed.
24 So then, the law became our guardian until Christ, in order that we could be justified by faith.
25 But [after] faith has come, we are no longer under a guardian.
Scripture quotations marked (LEB) are from the Lexham English Bible. Copyright 2012 Logos Bible Software. Lexham is a registered trademark of Logos Bible Software.