Matthew 2:19
But, on the death of Herod, an angel of the Lord appeared in a dream to Joseph in Egypt, and said:
Matthew 1:20
He had been dwelling upon this, when an angel of the Lord appeared to him in a dream. "Joseph, son of David," the angel said, "do not be afraid to take Mary for your wife, for her child has been conceived by the power of the Holy Spirit.
Matthew 2:12-13
But afterwards, having been warned in a dream not to go back to Herod, they returned to their own country by another road.
Matthew 2:22
But, hearing that Archelaus had succeeded his father Herod as King of Judea, he was afraid to go back there; and having been warned in a dream, he went into the part of the country called Galilee.