“And when thy days be fulfilled, and thou shalt sleep with thy fathers, I will set up thy seed after thee, which shall proceed out of thy bowels, and I will establish his kingdom. He shall build an house for my name, and I will establish the throne of his kingdom for ever” (2 Samuel 7:12, 13).
The following is the only genealogy in the Hebrew Scriptures for King Messiah. The list starts with David to whom the covenant was made and through Solomon who built the temple of Lord . King Ahaz is there to whom the virgin birth prophecy was made. It goes through Jeconiah and the curse, and ends six generations past Zerubbabel.
The New Testament continues with this same genealogy. It goes from Zerubbabel to Joseph, the step father of Jesus of Nazareth. And it ends with the virgin birth of King Messiah.
1 Chronicles 3:1-24
“ Now these were the sons of David, which were born unto him in Hebron; the firstborn Amnon, of Ahinoam the Jezreelitess; the second Daniel, of Abigail the Carmelitess: The third, Absalom the son of Maachah the daughter of Talmai king of Geshur: the fourth, Adonijah the son of Haggith: The fifth, Shephatiah of Abital: the sixth, Ithream by Eglah his wife. (4) These six were born unto him in Hebron ; and there he reigned seven years and six months: and in Jerusalem he reigned thirty and three years.
And these were born unto him in Jerusalem ; Shimea, and Shobab, and Nathan, and Solomon , four, of Bathshua the daughter of Ammiel: Ibhar also, and Elishama, and Eliphelet, and Nogah, and Nepheg, and Japhia, and Elishama, and Eliada, and Eliphelet, nine. These were all the sons of David, beside the sons of the concubines, and Tamar their sister.
And Solomon’s son was Rehoboam, Abia his son, Asa his son, Jehoshaphat his son, (11) Joram his son, Ahaziah his son, Joash his son, Amaziah his son, Azariah his son, Jotham his son, Ahaz  his son, Hezekiah his son, Manasseh his son, Amon his son, Josiah his son. And the sons of Josiah were, the firstborn Johanan, the second Jehoiakim, the third Zedekiah, the fourth Shallum.
And the sons of Jehoiakim: Jeconiah  his son, Zedekiah his son. And the sons of Jeconiah; Assir, Salathiel his son, Malchiram also, and Pedaiah, and Shenazar, Jecamiah, Hoshama, and Nedabiah. And the sons of Pedaiah were, Zerubbabel, and Shimei: and the sons of Zerubbabel; Meshullam, and Hananiah, and Shelomith their sister: And Hashubah, and Ohel, and Berechiah, and Hasadiah, Jushabhesed, five.
And the sons of Hananiah; Pelatiah, and Jesaiah: the sons of Rephaiah, the sons of Arnan, the sons of Obadiah, the sons of Shechaniah. And the sons of Shechaniah; Shemaiah: and the sons of Shemaiah; Hattush, and Igeal, and Bariah, and Neariah, and Shaphat, six. And the sons of Neariah; Elioenai, and Hezekiah, and Azrikam, three. And the sons of Elioenai were, Hodaiah, and Eliashib, and Pelaiah, and Akkub, and Johanan, and Dalaiah, and Anani, seven.”
Matthew 1:13 -16; 18; 20-23
And Zorobabel begat Abiud; and Abiud begat Eliakim; and Eliakim begat Azor; and Azor begat Sadoc; and Sadoc begat Achim; and Achim begat Eliud; and Eliud begat Eleazar; and Eleazar begat Matthan; and Matthan begat Jacob.
And Jacob begat Joseph the husband of Mary, of whom was born Jesus, who is called Christ. Now the birth of Jesus Christ was on this wise: When as his mother Mary was espoused to Joseph, before they came together, she was found with child of the Holy Ghost.
But while he thought on these things, behold, the angel of the Lord appeared unto him in a dream, saying, Joseph, thou son of David, fear not to take unto thee Mary thy wife: for that which is conceived in her is of the Holy Ghost. And she shall bring forth a son, and thou shalt call his name JESUS: for he shall save his people from their sins.
Now all this was done, that it might be fulfilled which was spoken of the Lord by the prophet, saying, ‘Behold, a virgin shall be with child, and shall bring forth a son, and they shall call his name Emmanuel, which being interpreted is, God with us.’”
The genealogy of the combined Hebrew Scriptures and New Testament show that only Jesus of Nazareth can be Israel ’s King Messiah, the Savior of mankind.
 Solomon builds the temple and the Messianic line can only go through him.
 The prophecy of the virgin birth given, Isaiah 7:14.
 The curse pronounced on King Messiah’s line, Jeremiah 22:25-30.