Matthew 2:19

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

Matthew 1:20

but after he had planned this, there appeared an angel of the Lord to him in a dream saying, "Joseph, son of David, fear not to take Mary your wife home, for what is begotten in her comes from the holy Spirit.

Matthew 2:12-13

Then, as they had been divinely warned in a dream not to return to Herod, they went back to their own country by a different road.

Matthew 2:22

but on hearing that Archelaus reigned over Judaea in place of his father Herod, he was afraid to go there and, by a divine injunction in a dream, withdrew to 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, there appeared an angel of the Lord to Joseph in a dream, saying, "Rise, take the child and his mother and flee to Egypt; stay there till I tell you. For Herod is going to search for the child and destroy him."
Matthew 1:20
but after he had planned this, there appeared an angel of the Lord to him in a dream saying, "Joseph, son of David, fear not to take Mary your wife home, for what is begotten in her comes from the holy Spirit.