This Gospel of Matthew has a prologue with five parts that echo the book of Genesis. First, there was the genealogy of Jesus via Joseph that began with Abraham, Isaac, and Jacob. Then this genealogy went through the twin sons of Judah and the descendants of Perez. Then it went from Ruth to King David. Then there was the kings of Judah from Solomon to the gap and up to and including the Babylonian captivity. Finally, there were the unknown names in this genealogy that led up to Joseph and his father. Matthew then explained the genealogy of Jesus, since there were differences of this genealogy with that of the Gospel of Luke.
The second part of this prologue was the virgin birth of Jesus. First of all, there was the conception of Jesus from Joseph’s point of view, not Mary’s. Joseph wanted to divorce Mary for being pregnant until an angel in a dream told him that Jesus would be a special child that fulfilled the prophecy of Isaiah. After waking up from his dream, there was the virgin birth of Jesus in Bethlehem.
The third part of this prologue was the visit of the Magi. They brought their questions to Herod the Judean Roman king, who was annoyed and frightened. He found out that Bethlehem was described by the prophet Micah as the place where the Messiah would be born. Herod summoned the Magi and sent them to Bethlehem. The Magi followed the star and found Mary with the child at the so-called Epiphany. However, they went home another route so that they did not go back to King Herod.
The fourth part was the flight into Egypt, as Joseph had another dream. They went to Egypt to fulfill another prophecy that the Messiah would come out of Egypt. Meanwhile, King Herod killed all the under two-year old boys in the Bethlehem area as the fulfillment of the prophecy of Jeremiah.
Finally, the fifth part of the prologue was the return of Jesus to Nazareth when Joseph had a third dream. He was told to return to Israel, or more specifically to Galilee in a place called Nazareth. Thus, this prologue gave the unique perspective of Joseph.