"In Matthew’s Gospel there is a clear parallel between the Pharaoh’s effort to slaughter the Hebrew boys (Exodus 1:22) and King Herod’s effort to kill all the male children in Bethlehem who were two years old or under (Matthew 2:16).
Pharaoh and Herod both killed the baby boys, but God divinely
protected both Moses and Jesus, and just as the Hebrew midwives rebelled against Pharaoh (Exodus 1:17), so the magi rebelled against Herod’s order to tell him where the promised King was to be born (Matthew 2:7–12).
protected both Moses and Jesus, and just as the Hebrew midwives rebelled against Pharaoh (Exodus 1:17), so the magi rebelled against Herod’s order to tell him where the promised King was to be born (Matthew 2:7–12).
Both Moses and Jesus fled to foreign lands to escape, and both waited in exile until God spoke to them to return to their lands (Exodus 2:15, 4:19; Matthew 2:13–15, 19–21).
Moses and Jesus were both born at times of great peril to God’s people, but God used them to become deliverers of his people.
---But there is an important difference. Moses was a human child whom God used to rescue the nation of Israel from slavery (Exodus 13:3); whereas Jesus, the Prophet like Moses (Deuteronomy 18:1811), is the eternal Son of God (Galatians 4:4), who came from heaven to earth to rescue people from every tribe, language, people, and nation from their slavery to sin (Revelation 5:9)." AIG