1The book of the genealogy of Jesus Christ, the son of David, the son of Abraham.
2Abraham became the father of Isaac. Isaac became the father of Jacob. Jacob became the father of Judah and his brothers. 3Judah became the father of Perez and Zerah by Tamar. Perez became the father of Hezron. Hezron became the father of Ram. 4Ram became the father of Amminadab. Amminadab became the father of Nahshon. Nahshon became the father of Salmon. 5Salmon became the father of Boaz by Rahab. Boaz became the father of Obed by Ruth. Obed became the father of Jesse. 6Jesse became the father of King David. David the king became the father of Solomon by her who had been Uriah’s wife. 7Solomon became the father of Rehoboam. Rehoboam became the father of Abijah. Abijah became the father of Asa. 8Asa became the father of Jehoshaphat. Jehoshaphat became the father of Joram. Joram became the father of Uzziah. 9Uzziah became the father of Jotham. Jotham became the father of Ahaz. Ahaz became the father of Hezekiah. 10Hezekiah became the father of Manasseh. Manasseh became the father of Amon. Amon became the father of Josiah. 11Josiah became the father of Jechoniah and his brothers at the time of the exile to Babylon.
12After the exile to Babylon, Jechoniah became the father of Shealtiel. Shealtiel became the father of Zerubbabel. 13Zerubbabel became the father of Abiud. Abiud became the father of Eliakim. Eliakim became the father of Azor. 14Azor became the father of Zadok. Zadok became the father of Achim. Achim became the father of Eliud. 15Eliud became the father of Eleazar. Eleazar became the father of Matthan. Matthan became the father of Jacob. 16Jacob became the father of Joseph, the husband of Mary, from whom was born Jesus, who is called Christ.
17So all the generations from Abraham to David are fourteen generations; from David to the exile to Babylon fourteen generations; and from the carrying away to Babylon to the Christ, fourteen generations.
18Now the birth of Jesus Christ was like this: After his mother, Mary, was engaged to Joseph, before they came together, she was found pregnant by the Holy Spirit. 19Joseph, her husband, being a righteous man, and not willing to make her a public example, intended to put her away secretly. 20But when he thought about these things, behold, an angel of the Lord appeared to him in a dream, saying, “Joseph, son of David, don’t be afraid to take to yourself Mary as your wife, for that which is conceived in her is of the Holy Spirit. 21She shall give birth to a son. You shall name him Jesus, for it is he who shall save his people from their sins.”
22Now all this has happened that it might be fulfilled which was spoken by the Lord through the prophet, saying,
23“Behold, the virgin shall be with child,
and shall give birth to a son.
They shall call his name Immanuel,”
which is, being interpreted, “God with us.”
24Joseph arose from his sleep, and did as the angel of the Lord commanded him, and took his wife to himself; 25and didn’t know her sexually until she had given birth to her firstborn son. He named him Jesus.
Jacob was the son of Isaac and Rebekah, born immediately after Esau, and Abraham was his grandfather. He achieved the right of the firstborn by trickery, in offering his older brother, Esau, food in exchange for the birthright, who cared little for this position. He also received the blessing of firstborn from his father Jacob before his death by cunning, and with the assistance of his mother Rebekah.
After his deception of Esau, receiving the blessing from his father, Jacob escaped to his uncle Laban, who in turn deceived Jacob into working for fourteen years for the marriage of Jacob to Leah, and then his beloved Rachel. Laban also sought to deceive Jacob of wages, but God intervened to ensure he would prosper. In a time of trial, when he feared the wrath of Esau, upon returning to the land of Canaan, Jacob had an encounter with God, and his name was changed to Israel, the one who wrestles with God. Even though his early life was characterized by deception, God worked through the situation to ensure that Jacob would be the one in the line of the patriarchs, to create a great nation and ultimately fulfill His purposes in the earth, especially through the future Messiah. The Messiah would guarantee the promise of the land to Abram and a person who would rule over Abraham's descendants, but also He would bring blessings to all the people of the earth (Gen 12:1-3).
In spite of Jacob's early failure by deception, God worked through him, and finally, Jacob became a different type of man after his struggle with God. As one has said,
"Despite Jacob’s faults, God chose him to be the leader of a great nation that still bears his name today. But for this, it is unlikely that we would know much about Jacob, who appears to be in the middle of events while the key players are those around him. There is no great wisdom or bravery in Jacob to speak of, and we are tempted to see him as little more than God’s passive instrument. If we are tempted to think that, because we aren’t in the spotlight performing great acts for God, we are unimportant to Him, then we should consider the life of Jacob and know that, in spite of our failings, God can and will still use us in His plan."
For more on Jacob, see "Who was Jacob in the Bible?", https://www.gotquestions.org/life-Jacob.html