Matthew 2:19

And when Herod had died, behold, an angel of the Lord appeared to Joseph in a dream, in Egypt, saying,

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 Mary your wife, for that which is conceived in her is by the Holy Spirit,

Matthew 2:12-13

And being divinely instructed in a dream not to return to Herod, they departed to their country another way.

Matthew 2:22

But hearing that Archelaus reigned over Judea in the place of Herod his father, he was afraid to go there; but being divinely instructed in a dream, he departed into the parts 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
And 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 remain there till I tell you; for Herod will seek the young child to destroy it.
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 Mary your wife, for that which is conceived in her is by the Holy Spirit,