Matthew 2:12, 19
Matthew 2:12 NCV
But God warned the wise men in a dream not to go back to Herod, so they returned to their own country by a different way.
Matthew 2:19 NCV
After Herod died, an angel of the Lord spoke to Joseph in a dream while he was in Egypt.