@Tom Bayeye
Matthew 1:1-16 and Luke 3:23-28 at first appear to be contradictory. However on closer inspection, they complement each other.
The genealogy in Matthew 1 is clearly that of Joseph, Mary’s husband. Matthew records it for legal purposes. He is writing to prove to the Jews that Jesus is the Messiah, and the Jews’ custom in keeping records is to trace descent through the father. Legally, the Jews of Jesus’ day looked on Jesus as a son of Joseph (John 6:42). Also, Joseph’s lineage is given to emphasize the fact that Jesus had been born of a virgin. Because of a curse that God placed on one of Joseph’s ancestors, Jesus could never sit upon the throne of David if Joseph had been His natural father.
Jechonias (Matthew 1:11-12), called Coniah in Jeremiah 22:24-30, was so evil God cursed him and his descendants, saying, “Write this man down as childless, . . . for none of his descendants shall prosper, sitting on the throne of David, and ruling anymore in Judah” (verse 30). Jeconiah, as his name is spelled in the Old Testament, had children (I Chronicles 3:17), but he was childless insofar as none of his descendants ruled as king over Judah.
How, then, could Jesus be a descendant of David and qualify to sit on the throne? Enter the genealogy in Luke 3, which is Mary’s. According to Jewish usage, Mary’s ancestry is given in her husband’s name. The original Greek merely says Joseph was “of Heli” or Eli (verse 23). In fact, since Joseph’s father is said to be Jacob in Matthew 1:16, Heli is most probably Mary’s father. Joseph, then, is his son-in-law.
Unlike Joseph’s lineage, there was no block in Mary’s genealogy to Jesus sitting on the throne of David. Mary’s descent from David comes through his son Nathan, not Solomon or one of David’s other children (Luke 3:31). To fulfill His promise to establish David’s throne forever, God honored Nathan by making him the ancestor of the promised King who would sit on David’s throne throughout eternity (Luke 1:31-33).
But how could Mary transmit David’s royal inheritance—the right to the throne—to her Son, since all inheritances had to pass through the male line? According to Israel’s law, when a daughter is the only heir, she can inherit her father’s possessions and rights if she marries within her own tribe (Numbers 27:1-8; 36:6-8). There is no record that Mary had any brothers to inherit her father’s possessions and rights. Thus, Joseph became Heli’s heir by marriage to Mary, inheriting the right to rule on David’s throne, even over Judah. This right then passed on to Jesus.
Both genealogies had to be recorded to establish Christ’s right to rule on David’s throne. Joseph’s genealogy shows that Christ was a legal descendant of Jeconiah and thus legally could not sit on the throne of David in the nation Judah by inheriting the right solely through Joseph.
Further, the genealogies prove the virgin birth: The curse on Jeconiah’s line would have passed on to Christ if He were Joseph’s natural son, but He was not—He was the Son of God the Father, begotten by the Holy Spirit.
Jesus was Mary’s son descended from Nathan. Jesus can inherit rule over Judah because of Mary’s marriage to Joseph, whose genealogy shows he was Heli’s son-in-law.
Matthew 1:1-17 record of Jesus’ lineage
This is the genealogy[a] of Jesus the Messiah[b] the son of David,(D) the son of Abraham
2 Abraham was the father of Isaac,(F)
Isaac the father of Jacob,(G)
Jacob the father of Judah and his brothers,(H)
3 Judah the father of Perez and Zerah, whose mother was Tamar,(I)
Perez the father of Hezron,
Hezron the father of Ram,
4 Ram the father of Amminadab,
Amminadab the father of Nahshon,
Nahshon the father of Salmon,
5 Salmon the father of Boaz, whose mother was Rahab,(J)
Boaz the father of Obed, whose mother was Ruth,
Obed the father of Jesse,
6 and Jesse the father of King David.(K)
David was the father of Solomon, whose mother had been Uriah’s wife,(L)
7 Solomon the father of Rehoboam,
Rehoboam the father of Abijah,
Abijah the father of Asa,
8 Asa the father of Jehoshaphat,
Jehoshaphat the father of Jehoram,
Jehoram the father of Uzziah,
9 Uzziah the father of Jotham,
Jotham the father of Ahaz,
Ahaz the father of Hezekiah,
10 Hezekiah the father of Manasseh,(M)
Manasseh the father of Amon,
Amon the father of Josiah,
11 and Josiah the father of Jeconiah[c] and his brothers at the time of the exile to Babylon.(N)
12 After the exile to Babylon:
Jeconiah was the father of Shealtiel,(O)
Shealtiel the father of Zerubbabel,(P)
13 Zerubbabel the father of Abihud,
Abihud the father of Eliakim,
Eliakim the father of Azor,
14 Azor the father of Zadok,
Zadok the father of Akim,
Akim the father of Elihud,
15 Elihud the father of Eleazar,
Eleazar the father of Matthan,
Matthan the father of Jacob,
16 and Jacob the father of Joseph, the husband of Mary,(Q) and Mary was the mother of Jesus who is called the Messiah.(R)
17 Thus there were fourteen generations in all from Abraham to David, fourteen from David to the exile to Babylon, and fourteen from the exile to the Messiah.
Luke’s record of the genealogy of Jesus
Luke 3:23-28
23 Now Jesus himself was about thirty years old when he began his ministry.(AG) He was the son, so it was thought, of Joseph,(AH)
the son of Heli, 24 the son of Matthat,
the son of Levi, the son of Melki,
the son of Jannai, the son of Joseph,
25 the son of Mattathias, the son of Amos,
the son of Nahum, the son of Esli,
the son of Naggai, 26 the son of Maath,
the son of Mattathias, the son of Semein,
the son of Josek, the son of Joda,
27 the son of Joanan, the son of Rhesa,
the son of Zerubbabel,(AI) the son of Shealtiel,
the son of Neri, 28 the son of Melki,
the son of Addi, the son of Cosam,
the son of Elmadam, the son of Er,
29 the son of Joshua, the son of Eliezer,
the son of Jorim, the son of Matthat,
the son of Levi, 30 the son of Simeon,
the son of Judah, the son of Joseph,
the son of Jonam, the son of Eliakim,
31 the son of Melea, the son of Menna,
the son of Mattatha, the son of Nathan,(AJ)
the son of David, 32 the son of Jesse,
the son of Obed, the son of Boaz,
the son of Salmon,[d] the son of Nahshon,
33 the son of Amminadab, the son of Ram,[e]
the son of Hezron, the son of Perez,(AK)
the son of Judah, 34 the son of Jacob,
the son of Isaac, the son of Abraham,
the son of Terah, the son of Nahor,(AL)
35 the son of Serug, the son of Reu,
the son of Peleg, the son of Eber,
the son of Shelah, 36 the son of Cainan,
the son of Arphaxad,(AM) the son of Shem,
the son of Noah, the son of Lamech,(AN)
37 the son of Methuselah, the son of Enoch,
the son of Jared, the son of Mahalalel,
the son of Kenan,(AO) 38 the son of Enosh,
the son of Seth, the son of Adam,
the son of God.(AP)