Being warned of God in a dream. Probably they were suspicious of Herod, for they could not fail to know his character, and asked God to guide them. He did so by a dream, and hence they avoided Jerusalem on their return.