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,