Berean Standard Bible (BSB)
But thanks be to God that, though you once were slaves to sin, you wholeheartedly obeyed the form of teaching to which you were committed.
World English Bible (WEB)
But thanks be to God, that, whereas you were bondservants of sin, you became obedient from the heart to that form of teaching whereunto you were delivered.
Strong's King James
But{G1161} God{G2316} be thanked{G5485}, that{G3754} ye were{G2258}{(G5713)} the servants{G1401} of sin{G266}, but{G1161} ye have obeyed{G5219}{(G5656)} from{G1537} the heart{G2588} that form{G5179} of doctrine{G1322} which{G1519}{G3739} was delivered you{G3860}{(G5681)}.
The F.O.G *
(17) and favourable-grace towards The אֱלֹהִים Elohim-God! You were slaves of deviation but you became obedient from the heart to the type of teaching unto which you're handed over.
The F.O.G Message *
Young's Literal Translation
and thanks to God, that ye were servants of the sin, and—were obedient from the heart to the form of teaching to which ye were delivered up;