Matthew 2:12
"And being warned of God in a dream that they should not return to Herod, they departed into their own country another way."
Cross References (ranked by relevance)
But when he heard that Archelaus did reign in Judaea in the room of his father Herod, he was afraid to go thither: notwithstanding, being warned of God in a dream, he turned aside into the parts of Galilee:
But when Herod was dead, behold, an angel of the Lord appeareth in a dream to Joseph in Egypt,
And when they were departed, behold, the angel of the Lord appeareth to Joseph in a dream, saying, Arise, and take the young child and his mother, and flee into Egypt, and be thou there until I bring thee word: for Herod will seek the young child to destroy him.
When he was set down on the judgment seat, his wife sent unto him, saying, Have thou nothing to do with that just man: for I have suffered many things this day in a dream because of him.
But while he thought on these things, behold, the angel of the LORD appeared unto him in a dream, saying, Joseph, thou son of David, fear not to take unto thee Mary thy wife: for that which is conceived in her is of the Holy Ghost.
And God came to Laban the Syrian in a dream by night, and said unto him, Take heed that thou speak not to Jacob either good or bad.
Then was the secret revealed unto Daniel in a night vision. Then Daniel blessed the God of heaven.
By faith Noah, being warned of God of things not seen as yet, moved with fear, prepared an ark to the saving of his house; by the which he condemned the world, and became heir of the righteousness which is by faith.
But the midwives feared God, and did not as the king of Egypt commanded them, but saved the men children alive.
But Peter and John answered and said unto them, Whether it be right in the sight of God to hearken unto you more than unto God, judge ye.
Then Peter and the other apostles answered and said, We ought to obey God rather than men.
For the wisdom of this world is foolishness with God. For it is written, He taketh the wise in their own craftiness.