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 2:22

But hearing that Archelaus reigned in Judea in the stead of Herod his father, he was afraid to go thither. And being divinely warned in a dream, he retired into the country of Galilee,

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 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:13

Now when they were gone, behold an angel of the Lord appeared unto Joseph in a dream, saying, Arise, and take the infant and his mother by night, and flee into Egypt, and stay there, till I speak to thee, for Herod will search for the infant to destroy it.

Matthew 2:19

Now when Herod was dead, behold, the angel of the Lord appeared in a dream to Joseph in Egypt,

Acts 4:19

But Peter and John, answering them, said, If it be right in the sight of God to obey you rather than God, be yourselves the judges.

Acts 5:29

Then Peter and the apostles answering said, We must obey God rather than men.

1 Corinthians 3:19

For the wisdom of this world is folly in the sight of God. For it is written, "He entangleth the wise in their own craftiness."

Hebrews 11:7

By faith Noah, being divinely warned respecting things not yet seen, filled with reverential awe, prepared an ark for the salvation of his household, by which he condemned the world, and became heir of the righteousness which is by faith.

Treasury of Scripture Knowledge

Summary

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

Bible References

Warned

Matthew 2:22
But hearing that Archelaus reigned in Judea in the stead of Herod his father, he was afraid to go thither. And being divinely warned in a dream, he retired into the country of Galilee,
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.

They departed

Acts 4:19
But Peter and John, answering them, said, If it be right in the sight of God to obey you rather than God, be yourselves the judges.
Acts 5:29
Then Peter and the apostles answering said, We must obey God rather than men.
1 Corinthians 3:19
For the wisdom of this world is folly in the sight of God. For it is written, "He entangleth the wise in their own craftiness."