Galatians 3:23

Amplified Bible (AMP)
Now before faith came, we were kept in custody under the Law, [perpetually] imprisoned [in preparation] for the faith that was destined to be revealed,

Read Galatians 3:23 in other translations