Matthew 1:20

But as he considered this, behold, an angel of the Lord appeared to him in a dream, saying, "Joseph, son of David, do not be afraid to take Mary your wife, for that which is conceived in her is of the Holy Spirit.

Matthew 27:19

While he was sitting on the judgment seat, his wife sent word to him, "Have nothing to do with that righteous man, for I have suffered greatly today in a dream because of him."

Matthew 2:12-13

And being warned in a dream not to return to Herod, they departed to their own country by 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 as he considered this, behold, an angel of the Lord appeared to him in a dream, saying, "Joseph, son of David, do not be afraid to take Mary your wife, for that which is conceived in her is of the Holy Spirit.
Matthew 2:12
And being warned in a dream not to return to Herod, they departed to their own country by another way.
Matthew 27:19
While he was sitting on the judgment seat, his wife sent word to him, "Have nothing to do with that righteous man, for I have suffered greatly today in a dream because of him."