Matthew 1 New King James Version (NKJV)
The Genealogy of Jesus Christ
1 The book of the genealogy[a] of Jesus Christ, the Son of David, the Son of Abraham:
2 Abraham begot Isaac, Isaac begot Jacob, and Jacob begot Judah and his brothers. 3 Judah begot Perez and Zerah by Tamar, Perez begot Hezron, and Hezron begot Ram. 4 Ram begot Amminadab, Amminadab begot Nahshon, and Nahshon begot Salmon. 5 Salmon begot Boaz by Rahab, Boaz begot Obed by Ruth, Obed begot Jesse, 6 and Jesse begot David the king.
David the king begot Solomon by her [b]who had been the wife of Uriah. 7 Solomon begot Rehoboam, Rehoboam begot Abijah, and Abijah begot [c]Asa. 8 Asa begot Jehoshaphat, Jehoshaphat begot Joram, and Joram begot Uzziah. 9 Uzziah begot Jotham, Jotham begot Ahaz, and Ahaz begot Hezekiah. 10 Hezekiah begot Manasseh, Manasseh begot [d]Amon, and Amon begot Josiah. 11 Josiah begot [e]Jeconiah and his brothers about the time they were carried away to Babylon.
12 And after they were brought to Babylon, Jeconiah begot Shealtiel, and Shealtiel begot Zerubbabel. 13 Zerubbabel begot Abiud, Abiud begot Eliakim, and Eliakim begot Azor. 14 Azor begot Zadok, Zadok begot Achim, and Achim begot Eliud. 15 Eliud begot Eleazar, Eleazar begot Matthan, and Matthan begot Jacob. 16 And Jacob begot Joseph the husband of Mary, of whom was born Jesus who is called Christ.
17 So all the generations from Abraham to David are fourteen generations, from David until the captivity in Babylon are fourteen generations, and from the captivity in Babylon until the Christ are fourteen generations.
Christ Born of Mary
18 Now the birth of Jesus Christ was as follows: After His mother Mary was betrothed to Joseph, before they came together, she was found with child of the Holy Spirit. 19 Then Joseph her husband, being [f]a just man, and not wanting to make her a public example, was minded to put her away secretly. 20 But while he thought about these things, behold, an angel of the Lord appeared to him in a dream, saying, “Joseph, son of David, do not be afraid to take to you Mary your wife, for that which is [g]conceived in her is of the Holy Spirit. 21 And she will bring forth a Son, and you shall call His name [h]Jesus, for He will save His people from their sins.”
22 So all this was done that it might be fulfilled which was spoken by the Lord through the prophet, saying: 23 “Behold, the virgin shall be with child, and bear a Son, and they shall call His name Immanuel,” which is translated, “God with us.”
24 Then Joseph, being aroused from sleep, did as the angel of the Lord commanded him and took to him his wife, 25 and [i]did not know her till she had brought forth her[j] firstborn Son. And he called His name Jesus.
Matthew 1 New International Version (NIV)
The Genealogy of Jesus the Messiah
2 Abraham was the father of Isaac,
Isaac the father of Jacob,
Jacob the father of Judah and his brothers,
3 Judah the father of Perez and Zerah, whose mother was Tamar,
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,
Boaz the father of Obed, whose mother was Ruth,
Obed the father of Jesse,
6 and Jesse the father of King David.
David was the father of Solomon, whose mother had been Uriah’s wife,
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,
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.
12 After the exile to Babylon:
Jeconiah was the father of Shealtiel,
Shealtiel the father of Zerubbabel,
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, and Mary was the mother of Jesus who is called the Messiah.
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.
Joseph Accepts Jesus as His Son
18 This is how the birth of Jesus the Messiah came about[d]: His mother Mary was pledged to be married to Joseph, but before they came together, she was found to be pregnant through the Holy Spirit. 19 Because Joseph her husband was faithful to the law, and yet[e] did not want to expose her to public disgrace, he had in mind to divorce her quietly.
20 But after he had considered this, an angel of the Lord appeared to him in a dream and said, “Joseph son of David, do not be afraid to take Mary home as your wife, because what is conceived in her is from the Holy Spirit. 21 She will give birth to a son, and you are to give him the name Jesus,[f] because he will save his people from their sins.”
22 All this took place to fulfill what the Lord had said through the prophet: 23 “The virgin will conceive and give birth to a son, and they will call him Immanuel”[g] (which means “God with us”).
24 When Joseph woke up, he did what the angel of the Lord had commanded him and took Mary home as his wife. 25 But he did not consummate their marriage until she gave birth to a son. And he gave him the name Jesus.