What is the meaning of Matthew 2:19?

Mt ch 2Mt 2:1Mt 2:2Mt 2:3Mt 2:4Mt 2:5Mt 2:6Mt 2:7
Mt 2:8Mt 2:9Mt 2:10Mt 2:11Mt 2:12Mt 2:13Mt 2:14Mt 2:15
Mt 2:16Mt 2:17Mt 2:18Mt 2:19Mt 2:20Mt 2:21Mt 2:22Mt 2:23

Bible references

But when Herod was dead, behold, an angel of the Lord appeareth in a dream to Joseph in Egypt, (Matthew 2:19 KJV)

But when Herod was dead, behold, an angel of the Lord appeareth in a dream to Joseph in Egypt, saying, (Matthew 2:19 ASV)

But Herod having died, behold, an angel of [the] Lord appears in a dream to Joseph in Egypt, saying, (Matthew 2:19 DBY)

But when Herod was dead, behold, an angel of the Lord appeared in a dream to Joseph in Egypt, saying, (Matthew 2:19 WEB)

And Herod having died, lo, a messenger of the Lord in a dream doth appear to Joseph in Egypt, (Matthew 2:19 YLT)

Interlinear

Mt 2:19 But /de/ when Herod /Herodes/ was dead, /teleutao/ behold, /idou/ an angel /aggelos/ of the Lord /kurios/ appeareth /phaino/ in /kata/ a dream /onar/ to Joseph /Ioseph/ in /en/ Egypt, /Aiguptos/

Albert Barnes’ Commentary

Verse 19.  Herod was dead. See Barnes for Mt 2:15. Herod left three sons, and the kingdom was at his death divided between them. To Archelaus was given Judea, Idumea, and Samaria; to Philip, Batanea, Trachonitis, etc.; to Antipas, Galllea and Perea. Each of these was also called Herod, and these are the individuals who are so frequently referred to in the New Testament during the ministry of the Saviour and the labours of the apostles. The following table will show at a glance the chief connexions of this family, as far as they are mentioned in the sacred history.

The Fourfold Gospel

XV. THE CHILD JESUS BROUGHT FROM EGYPT TO NAZARETH. (Egypt and Nazareth, B.C. 4.) Mt 2:19-23; Lu 2:39

But when Herod was dead. He died in the thirty-seventh year of his reign and the seventieth of his life. A frightful inward burning consumed him, and the stench of his sickness was such that his attendants could not stay near him. So horrible was his condition that he even endeavored to end it by suicide.

Behold, an angel of the Lord. Word did not come by the infant Jesus; he was “made like unto his brethren” (Heb 2:17), and being a child, he “spake as a child” (1Co 13:11), and not as an oracle.  

Appeareth in a dream to Joseph in Egypt. Joseph had obeyed the command given at Mt 2:13, and God kept the promise contained therein. God ever keeps covenant with the obedient.  

(TFG 53)