Galatians 3:18-24

3:18 For if the inheritance is based on the law, it is no longer based on the promise, but God graciously gave it to Abraham through the promise.

3:19 Why then was the law given? It was added because of transgressions, until the arrival of the descendant to whom the promise had been made. It was administered through angels by an intermediary. 3:20 Now an intermediary is not for one party alone, but God is one. 3:21 Is the law therefore opposed to the promises of God? Absolutely not! For if a law had been given that was able to give life, then righteousness would certainly have come by the law. 3:22 But the scripture imprisoned everything and everyone under sin so that the promise could be given – because of the faithfulness of Jesus Christ – to those who believe.

Sons of God Are Heirs of Promise

3:23 Now before faith came we were held in custody under the law, being kept as prisoners until the coming faith would be revealed. 3:24 Thus the law had become our guardian until Christ, so that we could be declared righteous by faith.