Read this passage and open each verse for the full verse feed and commentary tools.
21Is the law then against the promises of God? Certainly not! For if there had been a law given which could make alive, most assuredly righteousness would have been of the law. 22But the scriptures shut up all things under sin, that the promise by faith in Jesus Christ might be given to those who believe.
Galatians 3:21-22 (WEB)