God warned them in a dream not to return to Herod, so they departed to their own country by another way.