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 arose, he took the young Child and His mother by night, and departed into Egypt: and was there until the death of Herod: that it might be fulfilled which was spoken of the Lord by the prophet, saying, “Out of Egypt have I called My Son.” Matthew 2:13-15
Matthew tells us of the angel of the Lord coming to Joseph in a dream saying, “Take the young Child and flee into Egypt” and it was because of Herod. All of this was the fulfilling of Old Testament prophecies concerning the killing of the innocents in verse 18 of this chapter; a prophecy of the prophet Jeremiah chapter 31 and verse 15.
It is also referring to a prophecy of Hosea 11:1, “When Israel was a child, then I loved him, and called my son out of Egypt.” Though this prophecy is related to God’s gracious deliverance of Israel out of Egyptian bondage it is also pointing to God’s fulfilling His promise to save out of the world all who would come to Him through His Son Jesus.
Egypt is a picture of the world and the wickedness within it. God sent His Son Jesus into the world to show His love for the world, and to deliver out of the world all who would turn from their sin to Him.
It was the wicked world who crucified the perfect Lamb of God, giving Himself willingly dying for our sins, He was buried not only proving His death but also carrying away all our sin, shame and condemnation (Leviticus 16 the scapegoat taken into the wilderness never to be seen again), then on the first day of the week (Sunday) Jesus came out of the grave alive forever more.
He is calling all who will hear Him, out of Egypt. Do you hear. Believe Him