Berean Standard Bible (BSB)
Before this faith came, we were held in custody under the law, locked up until faith should be revealed.
World English Bible (WEB)
But before faith came, we were kept in custody under the law, confined for the faith which should afterwards be revealed.
Strong's King James
But{G1161} before{G4253} faith{G4102} came{G2064}{(G5629)}, we were kept{G5432}{(G5712)} under{G5259} the law{G3551}, shut up{G4788}{(G5772)} unto{G1519} the faith{G4102} which should afterwards{G3195}{(G5723)} be revealed{G601}{(G5683)}.
The F.O.G *
(23) But before believing-faith came, we were detained under Torah-Law, imprisoned shut to the believing-faith about to be revealed.
The F.O.G Message *
Young's Literal Translation
And before the coming of the faith, under law we were being kept, shut up to the faith about to be revealed,