Galatians 3:19, 23
Galatians 3:19 NASB1995
Why the Law then? It was added because of transgressions, having been ordained through angels by the agency of a mediator, until the seed would come to whom the promise had been made.
Galatians 3:23 NASB1995
But before faith came, we were kept in custody under the law, being shut up to the faith which was later to be revealed.