21 Is the law then against the promises of God? God forbid: for if there had been a law given which could have given life, verily righteousness should have been by the law. 22 But the scripture hath concluded all under sin, that the promise by faith of Jesus Christ might be given to them that believe. 23 But before faith came, we were kept under the law, shut up unto the faith which should afterwards be revealed.
Galatians 3:21-23