WPNT(i)
21 Is the law then against the promises of God? Of course not! Rather, if a law had been given that was capable of imparting life, truly righteousness would have been by the law.
22 But the Scripture imprisoned everything under sin, so that the promise by faith in Jesus Christ might be given to those who believe.
23 Now before this faith came, we were kept in custody under the law, in confinement until the coming faith was revealed.
24 So then, the law became our guardian until Christ, so that we might be justified by faith.