Matthew 2:19

But after Herod died, an angel of the Lord in a dream appeared to Joseph in Egypt,

Matthew 1:20

But just as this thought occurred to him, an angel of the Lord appeared to him in a dream, and said, "Joseph, descendant of David, do not fear to take Mary as your wife, for it is through the influence of the Holy Spirit that she has become an expectant mother.

Matthew 2:12-13

Then, as they had been divinely warned in a dream not to return to Herod, they set out to their own country by another route.

Matthew 2:22

But because he heard that Archelaus was ruling over Judea in the place of his father, Herod, he was afraid to go there; and because he was divinely warned in a dream, he set out for the region of 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 gone, an angel of the Lord appeared to Joseph in a dream and said, "Wake up! Tenderly take the child and His mother, and escape to Egypt; stay there until I further direct you, for Herod is going to search for the child to destroy Him."
Matthew 1:20
But just as this thought occurred to him, an angel of the Lord appeared to him in a dream, and said, "Joseph, descendant of David, do not fear to take Mary as your wife, for it is through the influence of the Holy Spirit that she has become an expectant mother.