Matthew 1:20

But while he was thinking about the matter, [suddenly] an angel from the Lord appeared to him in a dream [i.e., a supernatural revelation given during sleep], saying, "Joseph, you descendant of David, do not be afraid to take Mary to be your wife, for the baby she is carrying is by [the power of] the Holy Spirit.

Matthew 27:19

Then while he was seated in Pilate's courtroom of justice, Pilate's wife sent [word] to him, saying, "You should have nothing to do with that innocent man. For I was very troubled in a dream over him today." [Note: That is, she was troubled over a dream she had before waking up that morning].

Matthew 2:12-13

Then they were warned by God in a [supernatural] dream not to return to Herod, so they left and returned to their own country by a different route.

Treasury of Scripture Knowledge

Summary

But God came to Abimelech in a dream by night, and said to him, Behold, thou art but a dead man, for the woman which thou hast taken; for she is a man's wife.

Bible References

A dream

Matthew 1:20
But while he was thinking about the matter, [suddenly] an angel from the Lord appeared to him in a dream [i.e., a supernatural revelation given during sleep], saying, "Joseph, you descendant of David, do not be afraid to take Mary to be your wife, for the baby she is carrying is by [the power of] the Holy Spirit.
Matthew 2:12
Then they were warned by God in a [supernatural] dream not to return to Herod, so they left and returned to their own country by a different route.
Matthew 27:19
Then while he was seated in Pilate's courtroom of justice, Pilate's wife sent [word] to him, saying, "You should have nothing to do with that innocent man. For I was very troubled in a dream over him today." [Note: That is, she was troubled over a dream she had before waking up that morning].