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.

Treasury of Scripture Knowledge

Summary

But when Herod was dead, behold, an angel of the Lord appeareth in a dream to Joseph in Egypt,

Bible References

An

Matthew 2:13
After they had left, an angel of the Lord appeared to Joseph in a dream, and said: "Awake, take the child and his mother, and seek refuge in Egypt; and stay there until I bid you return, for Herod is about to search for the child, to put him to death."
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.