Matthew 2:12

Then, as they had been divinely warned in a dream not to return to Herod, they set out to their own country by another route.

Matthew 2:22

But because he heard that Archelaus was ruling over Judea in the place of his father, Herod, he was afraid to go there; and because he was divinely warned in a dream, he set out for the region of Galilee.

Matthew 27:19

Now while he was on the bench, his wife sent him this word, "Do not have anything to do with that righteous man, for I have this morning suffered excruciating pain in a dream caused by Him."

Matthew 1:20

But just as this thought occurred to him, an angel of the Lord appeared to him in a dream, and said, "Joseph, descendant of David, do not fear to take Mary as your wife, for it is through the influence of the Holy Spirit that she has become an expectant mother.

Matthew 2:13

After they had gone, an angel of the Lord appeared to Joseph in a dream and said, "Wake up! Tenderly take the child and His mother, and escape to Egypt; stay there until I further direct you, for Herod is going to search for the child to destroy Him."

Matthew 2:19

But after Herod died, an angel of the Lord in a dream appeared to Joseph in Egypt,

Acts 4:19

But Peter and John answered them, "You must decide whether it is right in the sight of God to obey you instead of Him,

Acts 5:29

Peter and the apostles answered, "We must obey God rather than men.

1 Corinthians 3:19

For this world's wisdom is mere nonsense to God. For the Scripture says, "He who catches the wise with their own cunning,"

Hebrews 11:7

By faith Noah, on being divinely warned about things not seen as yet, in reverence prepared an ark for saving his family, and by his faith condemned the world and became possessor of the uprightness that results from 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 because he heard that Archelaus was ruling over Judea in the place of his father, Herod, he was afraid to go there; and because he was divinely warned in a dream, he set out for the region of Galilee.
Matthew 1:20
But just as this thought occurred to him, an angel of the Lord appeared to him in a dream, and said, "Joseph, descendant of David, do not fear to take Mary as your wife, for it is through the influence of the Holy Spirit that she has become an expectant mother.
Matthew 27:19
Now while he was on the bench, his wife sent him this word, "Do not have anything to do with that righteous man, for I have this morning suffered excruciating pain in a dream caused by Him."

They departed

Acts 4:19
But Peter and John answered them, "You must decide whether it is right in the sight of God to obey you instead of Him,
Acts 5:29
Peter and the apostles answered, "We must obey God rather than men.
1 Corinthians 3:19
For this world's wisdom is mere nonsense to God. For the Scripture says, "He who catches the wise with their own cunning,"