Berean Standard Bible (BSB)
And having been warned in a dream not to return to Herod, they withdrew to their country by another route.
World English Bible (WEB)
Being warned in a dream that they shouldn’t return to Herod, they went back to their own country another way.
Strong's King James
And{G2532} being warned of God{G5537}{(G5685)} in{G2596} a dream{G3677} that they should{G344} not{G3361} return{G344}{(G5658)} to{G4314} Herod{G2264}, they departed{G402}{(G5656)} into{G1519} their own{G846} country{G5561} another{G1223}{G243} way{G3598}.
The F.O.G *
(12) And being warned in a dream not to return to Herod, they left for their country by another way.
The F.O.G Message *
Young's Literal Translation
and having been divinely warned in a dream not to turn back unto Herod, through another way they withdrew to their own region.