Galatians 3:19

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.

Galatians 3:23

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.