Abraham was the father of Isaac, Isaac the father of Jacob, and Jacob the father of Judah and his brothers.
Judah was the father of Perez and Zerah by Tamar, Perez the father of Hezron, and Hezron the father of Ram.
After the exile to Babylon: Jeconiah was the father of Shealtiel, Shealtiel the father of Zerubbabel,
In all, then, there were fourteen generations from Abraham to David, fourteen from David to the exile to Babylon, and fourteen from the exile to the Christ.
This is how the birth of Jesus Christ came about: His mother Mary was pledged in marriage to Joseph, but before they came together, she was found to be with child through the Holy Spirit.
Because Joseph her husband was a righteous man and was unwilling to disgrace her publicly, he resolved to divorce her quietly.
But after he had pondered these things, an angel of the Lord appeared to him in a dream and said, “Joseph, son of David, do not be afraid to embrace Mary as your wife, for the One conceived in her is from the Holy Spirit.
She will give birth to a Son, and you are to give Him the name Jesus, because He will save His people from their sins.”
“Behold, the virgin will be with child and will give birth to a son, and they will call Him Immanuel” (which means, “God with us” ).
When Joseph woke up, he did as the angel of the Lord had commanded him and embraced Mary as his wife.