Matthew 2:12
And having been warned in a dream not to return to Herod, they withdrew to their country by another route.
Berean Standard Bible
And being warned of God in a dream that they should not return to Herod, they departed into their own country another way.
Being warned in a dream not to return to Herod, they went back to their own country another way.