[Genesis 50]
{50:1} Joseph, realizing this, fell upon his father’s face, weeping and kissing him.
{50:2} And he instructed his servant physicians to embalm his father with aromatics.
{50:3} And while they were fulfilling his orders, forty days passed. For this was the method of embalming dead bodies. And Egypt wept for him for seventy days.

The 40 days embalming of Israel was probably done the Egyptian way. Joseph had obviously Egyptian servants who knew this process.

{50:4} And when the time for mourning was fulfilled, Joseph spoke to the family of Pharaoh: “If I have found favor in your sight, speak to the ears of Pharaoh.
{50:5} For my father made me swear, saying: ‘See, I am dying. You shall bury me in my sepulcher which I dug for myself in the land of Canaan.’ Therefore, I shall go up and bury my father, and then return.”
{50:6} And Pharaoh said to him, “Go up and bury your father, just as he made you swear.”

The relationship between the Israelite people and the Pharaoh were perhaps at its peak at this moment. It was very good.

{50:7} So as he went up, all the elders of the house of Pharaoh went with him, along with every patriarch in the land of Egypt,
{50:8} and the house of Joseph with his brothers, except their little ones and flocks and also the herds, which they left behind in the land of Goshen.

A very important delegation from Egypt went up to Canaan accompanying Joseph and his family.

{50:9} Likewise, he had in his company chariots and horsemen. And it became a crowd without restraint.
{50:10} And they arrived at the threshing place of Atad, which is situated beyond the Jordan. There they spent seven full days celebrating the funeral rites with a great and vehement lamentation.

Notice that since Israel died, it has passed many days up to this point and still he hasn't been buried yet. The embalming process was very good in order to keep the dead body in good conditions despite the time and temperature.

{50:11} And when the inhabitants of the land of Canaan had seen this, they said, “This is a great Lamentation for the Egyptians.” And for this reason, the name of that place was called, “The Lamentation of Egypt.”

The loss of the father of Joseph was taken very personal to the people of Egypt, they also mourned as one of their own.

{50:12} And so, the sons of Jacob did just as he had instructed them.
{50:13} And carrying him into the land of Canaan, they buried him in the double cave, which Abraham had bought along with its field, from Ephron the Hittite, as a possession for burial, opposite Mamre.
{50:14} And Joseph returned into Egypt with his brothers and all those of his company, having buried his father.
{50:15} Now that he was dead, his brothers were afraid, and they said to one another: “Perhaps now he may remember the injury that he suffered and requite us for all the evil that we did to him.”
{50:16} So they sent a message to him, saying: “Your father instructed us before he died,
{50:17} that we should say these words to you from him: ‘I beg you to forget the wickedness of your brothers, and the sin and malice that they practiced against you.’ Likewise, we petition you to release the servants of the God of your father from this iniquity.” Hearing this, Joseph wept.

It's not clear if Israel actually made that note for Joseph, of if Joseph's brothers lied sending this message. In any case, Israel loved all his sons so he wouldn't want any quarrel between them.

{50:18} And his brothers went to him. And reverencing prostrate on the ground, they said, “We are your servants.”
{50:19} And he answered them: “Do not be afraid. Are we able to resist the will of God?
{50:20} You devised evil against me. But God turned it into good, so that he might exalt me, just as you presently discern, and so that he might bring about the salvation of many peoples.

Joseph is a foreshadow figure of Jesus Christ, how His own people did evil to Him, crucifying Him, but out of that evil which they did, God turned it into good, exalting Him above all creature.

"He humbled himself, becoming obedient even unto death, even the death of the Cross. Because of this, God has also exalted him and has given him a name which is above every name, so that, at the name of Jesus, every knee would bend, of those in heaven, of those on earth, and of those in hell, and so that every tongue would confess that the Lord Jesus Christ is in the glory of God the Father." (Philippians 2: 8-11).

{50:21} Do not be afraid. I will pasture you and your little ones.” And he consoled them, and he spoke mildly and leniently.

Likewise, our Lord Jesus Christ, after His resurrection, said to His Apostles "Peace be with you" despite the fact that they abandoned Him.

{50:22} And he lived in Egypt with all his father’s house; and he survived for one hundred and ten years. And he saw the sons of Ephraim to the third generation. Likewise, the sons of Machir, the son of Manasseh, were born onto Joseph’s knees.
{50:23} After these things happened, he said to his brothers: “God will visit you after my death, and he will make you ascend from this land into the land which he swore to Abraham, Isaac, and Jacob.”

This prophecy of Joseph applies to their descendants, hundreds of years later, to the twelve tribes of Israel.

{50:24} And when he had made them swear and had said, “God will visit you; carry my bones with you from this place,”
{50:25} he died, having completed one hundred and ten years of his life. And having been embalmed with aromatics, he was laid to rest in a coffin in Egypt.

This concludes the book of Genesis, we have seen here different covenants between God and Adam, and Adam's sons. With Adam (Gen 1:27-31), and then trying to restore it with his descendants after the fall with Noah (Gen 8:20-22) (Gen 9: 1-17), then again with Abraham because of the sinfulness of men (Gen 17:4 on).