Matthew 1:20

But while he was contemplating this step, an angel of the Lord appeared to him in a dream and said, "Joseph, son of David, do not be afraid to bring home your wife Mary, for she is with child through the Holy Spirit.

Matthew 27:19

While he was sitting on the tribunal a message came to him from his wife. "Have nothing to do with that innocent man," she said, "for during the night I have suffered terribly in a dream through him."

Matthew 2:12-13

But being forbidden by God in a dream to return to Herod, they went back 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 contemplating this step, an angel of the Lord appeared to him in a dream and said, "Joseph, son of David, do not be afraid to bring home your wife Mary, for she is with child through the Holy Spirit.
Matthew 2:12
But being forbidden by God in a dream to return to Herod, they went back to their own country by a different route.
Matthew 27:19
While he was sitting on the tribunal a message came to him from his wife. "Have nothing to do with that innocent man," she said, "for during the night I have suffered terribly in a dream through him."