Matthew 1:20

And as he was revolving the matter in his mind, behold, an angel of the Lord in a dream appeared unto him, saying, Joseph, son of David, fear not to take Mary for thy wife, for that which is conceived in her is from the Holy Spirit.

Matthew 27:19

Then, as he was sitting on the tribunal, his wife sent a message to him, saying, Have thou nothing to do with that righteous person; for I have suffered much to-day in a dream on his account.

Matthew 2:12-13

And having received warning in a dream not to go back to Herod, they departed into their own country by another road.

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
And as he was revolving the matter in his mind, behold, an angel of the Lord in a dream appeared unto him, saying, Joseph, son of David, fear not to take Mary for thy wife, for that which is conceived in her is from the Holy Spirit.
Matthew 2:12
And having received warning in a dream not to go back to Herod, they departed into their own country by another road.
Matthew 27:19
Then, as he was sitting on the tribunal, his wife sent a message to him, saying, Have thou nothing to do with that righteous person; for I have suffered much to-day in a dream on his account.