Matthew 2:19

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

Matthew 1:20

But while he was thinking of these things, behold, an angel of the Lord appeared to him in a dream, saying: Joseph, son of David, fear not to take home Mary your wife; for that which is begotten in her is of the Holy Spirit.

Matthew 2:12-13

And having been warned in a dream not to return to Herod, they departed into their own country by another way.

Matthew 2:22

But when he heard that Archelaus was reigning in Judea in place of Herod his father, he was afraid to go thither. But being warned in a dream, he with drew into the regions 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
When they had departed, behold, an angel of the Lord appeared to Joseph in a dream, saying: Arise, and take the young child and his mother, and flee into Egypt, and be there till I bring you word; for Herod is about to seek for the young child, to destroy him.
Matthew 1:20
But while he was thinking of these things, behold, an angel of the Lord appeared to him in a dream, saying: Joseph, son of David, fear not to take home Mary your wife; for that which is begotten in her is of the Holy Spirit.