There are only two instances in the 24 books of the Hebrew Bible where the commonly used word 'toldot' (generations) is perfected. The first relates creation as a preparation for the souls that would follow into the world. The second declared the purpose of the first; a soul, through Judah and Tamar of the generations from Peretz to Boaz and Ruth (the second perfect spelling) from whom King David, the Messianic root descended. But, according to Kabbala, this would be preceded by the messianic soul of Joseph.
R'Shmuel, ben Nachman said: "The brothers were busy selling Joseph; Reuben was busy with his sackcloth and fasting; Jacob was busy with his sackcloth and fasting; Judah was busy taking a wife for himself; and God was busy creating the light of King Messiah. 'And it came to pass at that time and Judah went down...' before the first slave is born, before the final redeemer is born.
Jacob's only daughter Dinah was raped, but Jacob delayed telling his sons until they returned from the fields. They were outraged by the defilement, but also their father's delay. They hated Dinah's baby and wanted to kill it. Jacob placed an amulet around her neck, took her to a mountain near the priests of Midyan, placed her in a 'SNeh' (bush) and sent a request to the high priest to care for her. She was named AeSNath, from 'SNeh' and SiNai (meaning hatred).
When Aesnath reached the age her mother was violated, the Midianite priests began transporting her to the ancestral home of Jacob's wives. Along that route they changed plans, traded her to Ishmaelites and joined their caravan heading south to Egypt. Curiously Torah tells the Ishmaelites were carrying an unusual cargo, נְכֹאת֙ וּצְרִ֣י וָלֹ֔ט : Spice, Gum and Balm. Rabbi Moses Ha-Kohen the Spaniard relates the word for Spice to a 'treasure house'. Separately Joseph's brothers kidnapped him and along that route to Egypt sold him to Midianites. Thus two caravans were separately transporting the people the brothers hated most; 17 year old Joseph and his 8 year old niece Aesnath, who he would later discover and marry.
Then, in the midst of the Joseph story Torah interjects the apparently unrelated story of Judah's descent from his brothers, his legitimate interlude with his ingenious daughter-in-law Tamar and the birth of their son Peretz that rescued the messianic line. The interjection exposed a low point of Judah's life juxtaposed with heights of immoveable messianic destiny. Jacob's wives, the house of Leah (through Dinah's daughter Aesnath) and the house of Rachel (Joseph) were ultimately united in marriage and the preceding messianic light of Joseph became firmly rooted for the Messianic redemption of Israel's tribes, the Jewish people.
The Torah returns us to the story. 22 years later, confronted by drought, Jacob sent his sons to Egypt to buy supplies. They did not recognize Joseph who had become the Viceroy of Egypt, they presented him with Jacob's gift and bowed to him. At that moment Joseph realized his prophetic dreams, that had caused such hatred. But, Jacob's gift surprised him because it contained three of the same "unusual" elements צֳרִי֙ וּמְעַ֣ט דְּבַ֔שׁ נְכֹ֣את וָלֹ֔ט בָּטְנִ֖ים וּשְׁקֵדִֽים: of the "treasure house" that accompanied him on his caravan to Egypt. Perhaps a hint that his prophetic father had orchestrated the regional priestly diplomacy to ensure Aesnath accompanied Joseph on his exile in Egypt.
If even prophetically Jacob knew Joseph was alive, why did he mourn the 22 years of Joseph's absence? Because, his son's collectively lied about selling Joseph. And, Joseph was not innocent, free to communicate he chose not to reach out, for 22 years! In the brothers final confrontation with Joseph Judah assumed responsibility for Benjamin who was too young to be implicated in the devilish scheme his brothers perpetrated against Joseph. With that collective realization Judah bound Benjamin to the oath their brothers had once entered, never to reveal their darkest secret, about the sale of Joseph to their father and Joseph, admitting his own shortcoming, fell on the neck of his younger brother Benjamin. Together they wept over the trauma of their brotherly fracture that would result in the future destruction of Jerusalem's temples. But, the sons of Israel (Jacob) were united, bound by their collective silence.
Still seeking assurance, on his death bed Israel's sons assured him "Hear us, O' Israel The Lord is our God, The Lord is One" and Israel's final, parting response: Blessed be the glory of His kingdom for ever and ever!