NET
23 Now before faith came we were held in custody under the law, being kept as prisoners until the coming faith would be revealed.
Darby
23 But before faith came, we were guarded under law, shut up to faith [which was] about to be revealed.
KJV
23 But before faith came, we were kept under the law, shut up unto the faith which should afterwards be revealed.