Matthew 1:20

But while he was thinking on these things, behold an angel of the Lord appeared to him in a dream, saying, Joseph, thou son of David, fear not to take to thee Mary thy wife; for that which is begotten in her, is of the Holy Ghost.

Matthew 27:19

While he sat on the judgment-seat, his wife sent to him, saying, Have thou nothing to do with that just man; for I have suffered many things to-day in a dream because of him.

Matthew 2:12-13

And being warned of God in a dream, not to return to Herod, they went back into their own country another way.

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 on these things, behold an angel of the Lord appeared to him in a dream, saying, Joseph, thou son of David, fear not to take to thee Mary thy wife; for that which is begotten in her, is of the Holy Ghost.
Matthew 2:12
And being warned of God in a dream, not to return to Herod, they went back into their own country another way.
Matthew 27:19
While he sat on the judgment-seat, his wife sent to him, saying, Have thou nothing to do with that just man; for I have suffered many things to-day in a dream because of him.