1Now these are the commandments, the statutes, and the ordinances, which Yahweh your God commanded to teach you, that you might do them in the land that you go over to possess; 2that you might fear Yahweh your God, to keep all his statutes and his commandments, which I command you—you, your son, and your son’s son, all the days of your life; and that your days may be prolonged. 3Hear therefore, Israel, and observe to do it, that it may be well with you, and that you may increase mightily, as Yahweh, the God of your fathers, has promised to you, in a land flowing with milk and honey.
4Hear, Israel: Yahweh is our God. Yahweh is one. 5You shall love Yahweh your God with all your heart, with all your soul, and with all your might. 6These words, which I command you today, shall be on your heart; 7and you shall teach them diligently to your children, and shall talk of them when you sit in your house, and when you walk by the way, and when you lie down, and when you rise up. 8You shall bind them for a sign on your hand, and they shall be for frontlets between your eyes. 9You shall write them on the door posts of your house and on your gates.
10It shall be, when Yahweh your God brings you into the land which he swore to your fathers, to Abraham, to Isaac, and to Jacob, to give you, great and goodly cities which you didn’t build, 11and houses full of all good things which you didn’t fill, and cisterns dug out which you didn’t dig, vineyards and olive trees which you didn’t plant, and you shall eat and be full; 12then beware lest you forget Yahweh, who brought you out of the land of Egypt, out of the house of bondage. 13You shall fear Yahweh your God; and you shall serve him, and shall swear by his name. 14You shall not go after other gods, of the gods of the peoples who are around you, 15for Yahweh your God among you is a jealous God, lest the anger of Yahweh your God be kindled against you, and he destroy you from off the face of the earth. 16You shall not tempt Yahweh your God, as you tempted him in Massah. 17You shall diligently keep the commandments of Yahweh your God, and his testimonies, and his statutes, which he has commanded you. 18You shall do that which is right and good in Yahweh’s sight, that it may be well with you and that you may go in and possess the good land which Yahweh swore to your fathers, 19to thrust out all your enemies from before you, as Yahweh has spoken.
20When your son asks you in time to come, saying, “What do the testimonies, the statutes, and the ordinances, which Yahweh our God has commanded you mean?” 21then you shall tell your son, “We were Pharaoh’s slaves in Egypt. Yahweh brought us out of Egypt with a mighty hand; 22and Yahweh showed great and awesome signs and wonders on Egypt, on Pharaoh, and on all his house, before our eyes; 23and he brought us out from there, that he might bring us in, to give us the land which he swore to our fathers. 24Yahweh commanded us to do all these statutes, to fear Yahweh our God, for our good always, that he might preserve us alive, as we are today. 25It shall be righteousness to us, if we observe to do all these commandments before Yahweh our God, as he has commanded us.”
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