Matthew 1:20

but after he had planned this, there appeared an angel of the Lord to him in a dream saying, "Joseph, son of David, fear not to take Mary your wife home, for what is begotten in her comes from the holy Spirit.

Matthew 27:19

Besides, when he was seated on the tribunal, his wife had sent to tell him, "Do nothing with that innocent man, for I have suffered greatly to-day in a dream about him.")

Matthew 2:12-13

Then, as they had been divinely warned in a dream not to return to Herod, they went back to their own country by a different 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
but after he had planned this, there appeared an angel of the Lord to him in a dream saying, "Joseph, son of David, fear not to take Mary your wife home, for what is begotten in her comes from the holy Spirit.
Matthew 2:12
Then, as they had been divinely warned in a dream not to return to Herod, they went back to their own country by a different road.
Matthew 27:19
Besides, when he was seated on the tribunal, his wife had sent to tell him, "Do nothing with that innocent man, for I have suffered greatly to-day in a dream about him.")