25 Then Joseph gave a command to fill their sacks with grain, to restore every man’s money to his sack, and to give them provisions for the journey. Thus he did for them.
26 So they loaded their donkeys with the grain and departed from there.
27 But as one of them opened his sack to give his donkey feed at the encampment, he saw his money; and there it was, in the mouth of his sack.
28 So he said to his brothers, “My money has been restored, and there it is, in my sack!” Then their hearts failed them and they were afraid, saying to one another, “What is this that God has done to us?”
29 Then they went to Jacob their father in the land of Canaan and told him all that had happened to them, saying:
30 “The man who is lord of the land spoke roughly to us, and took us for spies of the country.
31 But we said to him, ‘We are honest men; we are not spies.
32 We are twelve brothers, sons of our father; one is no more, and the youngest is with our father this day in the land of Canaan.’
33 Then the man, the lord of the country, said to us, ‘By this I will know that you are honest men: Leave one of your brothers here with me, take food for the famine of your households, and be gone.
34 And bring your youngest brother to me; so I shall know that you are not spies, but that you are honest men. I will grant your brother to you, and you may trade in the land.’ ”
35 Then it happened as they emptied their sacks, that surprisingly each man’s bundle of money was in his sack; and when they and their father saw the bundles of money, they were afraid.
36 And Jacob their father said to them, “You have bereaved me: Joseph is no more, Simeon is no more, and you want to take Benjamin. All these things are against me.”
37 Then Reuben spoke to his father, saying, “Kill my two sons if I do not bring him back to you; put him in my hands, and I will bring him back to you.”
38 But he said, “My son shall not go down with you, for his brother is dead, and he is left alone. If any calamity should befall him along the way in which you go, then you would bring down my gray hair with sorrow to the grave.”
Their journey back home must have been over a distance of about 250 miles or more. Presumably Jacob was still living in Hebron, and Joseph’s headquarters were possibly at or near the city of Memphis, which is about 10 miles south of the present city of Cairo. Thus, the journey would take them probably about three weeks. — Morris, page 601
Their hearts failed them and they were afraid (v.28) — presumably because they believed the Egyptians would consider that they’d not paid for the grain and so had, in fact, stolen it. When the time came to return to Egypt (which they would have to do eventually to recover Simeon), the governor would have an extra thing to accuse them of.
When Jacob discovered that all his sons had money in their sacks, he reacted with horror (v.36) and expected the worst.
Jacob accused his nine sons (more truly than he knew) of having been responsible for the loss of two of his children, Joseph and Simeon, and now surely they were going to cause the loss of Benjamin also, which was more than he could bear. And not only this, if they went into Egypt with Benjamin as the man had instructed them, they could all be charged with robbery, and maybe none of them would be allowed to return! Jacob would lose his entire family … Before he could really think through the situation and regain his trust and faith in God, he cried out that everything was against him. …
Upset by his father’s distress, Reuben (typically concerned, and meaning well, but nevertheless confused and unstable) rashly promised that he would be responsible for Benjamin if Jacob would let him go with them. If anything happened to him, he assured his father, then Jacob could slay his (Reuben’s) own two sons in punishment. Exactly what satisfaction he thought his father could get out of killing two of his grandsons, after already losing his sons, is hardly clear. …
Jacob simply refused altogether to consider letting Benjamin go down to Egypt … And there the matter stood for the time being. — Morris, pages 602-603.
1 When Jacob saw that there was grain in Egypt, Jacob said to his sons, “Why do you look at one another?”
2 And he said, “Indeed I have heard that there is grain in Egypt; go down to that place and buy for us there, that we may live and not die.”
3 So Joseph’s ten brothers went down to buy grain in Egypt.
4 But Jacob did not send Joseph’s brother Benjamin with his brothers, for he said, “Lest some calamity befall him.”
5 And the sons of Israel went to buy grain among those who journeyed, for the famine was in the land of Canaan.
6 Now Joseph was governor over the land; and it was he who sold to all the people of the land. And Joseph’s brothers came and bowed down before him with their faces to the earth.
7 Joseph saw his brothers and recognized them, but he acted as a stranger to them and spoke roughly to them. Then he said to them, “Where do you come from?” And they said, “From the land of Canaan to buy food.”
8 So Joseph recognized his brothers, but they did not recognize him.
9 Then Joseph remembered the dreams which he had dreamed about them, and said to them, “You are spies! You have come to see the nakedness of the land!”
10 And they said to him, “No, my lord, but your servants have come to buy food.
11 We are all one man’s sons; we are honest men; your servants are not spies.”
12 But he said to them, “No, but you have come to see the nakedness of the land.”
13 And they said, “Your servants are twelve brothers, the sons of one man in the land of Canaan; and in fact, the youngest is with our father today, and one is no more.”
14 But Joseph said to them, “It is as I spoke to you, saying, ‘You are spies!’
15 In this manner you shall be tested: By the life of Pharaoh, you shall not leave this place unless your youngest brother comes here.
16 Send one of you, and let him bring your brother; and you shall be kept in prison, that your words may be tested to see whether there is any truth in you; or else, by the life of Pharaoh, surely you are spies!”
17 So he put them all together in prison three days.
18 Then Joseph said to them the third day, “Do this and live, for I fear God:
19 If you are honest men, let one of your brothers be confined to your prison house; but you, go and carry grain for the famine of your houses.
20 And bring your youngest brother to me; so your words will be verified, and you shall not die.” And they did so.
21 Then they said to one another, “We are truly guilty concerning our brother, for we saw the anguish of his soul when he pleaded with us, and we would not hear; therefore this distress has come upon us.”
22 And Reuben answered them, saying, “Did I not speak to you, saying, ‘Do not sin against the boy’; and you would not listen? Therefore behold, his blood is now required of us.”
23 But they did not know that Joseph understood them, for he spoke to them through an interpreter.
24 And he turned himself away from them and wept. Then he returned to them again, and talked with them. And he took Simeon from them and bound him before their eyes.
Here’s Williams’ take on why Joseph acted as he did.
He loved [his brothers], and therefore sought their spiritual welfare. He acted so as to bring their sin to remembrance, to make them confess it with their own lips, and not just to him and in his presence, for he still concealed himself from them, but to God and in His presence. His detention of Simeon, and, afterwards, of Benjamin, was skillfully designed so as to find out if they still were indifferent to the cries of a captive brother and the tears of a bereaved father. His plans succeeded admirably, his sternness and his kindness both conspired to disquiet them; and his goodness helped to lead them to repentance. — Williams, page 39.
__________
Apparently, everyone coming into Egypt from foreign lands to buy grain had to obtain a direct permit from Joseph before he would be allowed to do so. It might well be that, under cloak of such a purchasing mission, outsiders might enter the land for subversive purposes. Foreign kings might covet Egypt’s wealth and desire to infiltrate and sabotage and possibly invade and plunder the land. It was up to Joseph to carefully screen all such alien travelers to be sure of their purposes. — Morris, page 595.
__________
[Joseph] had been a lad of seventeen when [his brothers] last saw him; now he was about thirty-eight. Furthermore, he was not dressed as a slave, but as a king. Also, he spoke to them through an interpreter (v.23), and so they did not even know he could speak their language.
As did everyone who come into Joseph’s presence, except Pharaoh himself (Genesis 41:43), they had to bow down before him. The did not realize, of course, that in so doing they were making the very dream come true for which they had hated him (Genesis 37:7-8). The word “bowed down” in verse 6 is the same as “make obeisance” in 37:7. — Morris, page 596.
__________
In [chapters 42-45] God “ties together” the various strands of circumstance that are spun in the previous five chapters (from 37:2), bringing the brothers face-to-face with their sin for the purpose of reconciliation and, consequently, refinement in godliness as He continues to mold them into the ideal covenant people that they will one day be (cf. Deuteronomy 10:12-22; Isaiah 1:25-26; Malachi 1:5). This dénouement commences when as a result of the famine—which extended even to the land of Canaan (see 41:57)—Jacob sends the ten brothers of Joseph to buy grain from Egypt. When they arrive, though Joseph recognizes his brothers, they do not recognize him, which situation Joseph then wisely exploits in order to (1) determine whether their collective character has improved and they have moved beyond their predilection to deceitfulness, while (2) ensuring that a connection is established which will ensure their continued interaction. Towards this end Joseph accuses the brothers of being spies, which they of course deny, whereupon Joseph sets a condition to determine whether the truth is really with them. Though initially this condition is that one of them will return to fetch Benjamin while the other nine remain confined (i.e., held as prisoners), Joseph compassionately mitigates this condition (he will not do to them, even for a much shorter period, what they did to him) and confines only one of them, Simeon, while the other nine return to their father Jacob in the land of Canaan. — Wechsler, pages 256-257.
One wonders if Simeon was the one chosen as the hostage because he was a ringleader in the murder of the Shechemites (Genesis 34:25-31) and, perhaps, in selling Joseph into slavery.
45 And Pharaoh called Joseph’s name Zaphnath-Paaneah. And he gave him as a wife Asenath, the daughter of Poti-Pherah priest of On. So Joseph went out over all the land of Egypt.
46 Joseph was thirty years old when he stood before Pharaoh king of Egypt. And Joseph went out from the presence of Pharaoh, and went throughout all the land of Egypt.
47 Now in the seven plentiful years the ground brought forth abundantly.
48 So he gathered up all the food of the seven years which were in the land of Egypt, and laid up the food in the cities; he laid up in every city the food of the fields which surrounded them.
49 Joseph gathered very much grain, as the sand of the sea, until he stopped counting, for it was immeasurable.
50 And to Joseph were born two sons before the years of famine came, whom Asenath, the daughter of Poti-Pherah priest of On, bore to him.
51 Joseph called the name of the firstborn Manasseh: “For God has made me forget all my toil and all my father’s house.”
52 And the name of the second he called Ephraim: “For God has caused me to be fruitful in the land of my affliction.”
53 Then the seven years of plenty which were in the land of Egypt ended,
54 and the seven years of famine began to come, as Joseph had said. The famine was in all lands, but in all the land of Egypt there was bread.
55 So when all the land of Egypt was famished, the people cried to Pharaoh for bread. Then Pharaoh said to all the Egyptians, “Go to Joseph; whatever he says to you, do.”
56 The famine was over all the face of the earth, and Joseph opened all the storehouses and sold to the Egyptians. And the famine became severe in the land of Egypt.
57 So all countries came to Joseph in Egypt to buy grain, because the famine was severe in all lands.
[Pharaoh] gave Joseph an Egyptian name, Zaphnath-paaneah, the exact meaning of which is somewhat doubtful. It has been variously interpreted as “Abundance of life,” “Savior of the World,” “Revealer of Secrets,” “God’s Word Speaking Life,” “Furnisher of Sustenance,” and so on. This variety of possible names at least indicates that Pharaoh probably conferred a name on him which was expressive of his unique contributions to Egypt at this time in her history.
Pharaoh next obtained a suitable wife for Joseph … The girl chosen was the daughter of an Egyptian priest. Nothing is said about her except her name and parentage. We can only assume that Joseph, dedicated as he was to the Lord, would not have consented to marry her unless he was satisfied that she would leave her own pagan beliefs to follow Jehovah. …
The girl’s name was Asenath, which apparently indicates something like “Dedicated to Neith,” Neigh being the Egyptian equivalent of the goddess Minerva. Thus there is little doubt that she had been brought up in the polytheistic Egyptian religion. Her father, Potipherah (meaning essentially the same thing as Potiphar, “given by Ra, the sun-god”), was actually a prominent priest in this religious system, located at the temple at On (probably the same as Heliopolis, a city specially devoted to the sun-god). … So far as the record goes, at least, Joseph never married any wife other than Asenath. — Morris, pages 587-588.
Joseph was 30 years old when he interpreted Pharaoh’s dream, which means that he had been away from his family for 13 years.
It was during the seven-year period of prosperity that two sons were born to Joseph and Asenath. These two sons were destined to give their names to two of the most prominent tribes of Israel.
The boys were named by Joseph in recognition of his unusual experiences. The first was named Manasseh, meaning, “Forgetting,” and signifying that God had caused Joseph to forget all the long years of suffering and rejection he had endured. …
His second son was named Ephraim (“Doubly Fruitful”) in thankfulness for the manner in which God had so richly blessed him and prospered him. — Morris, page 589
God caused the crops of Egypt to grow so abundantly that just 20% of the crop from the seven good years was enough to supply the needs of the Egyptians and the surrounding nations during the seven years of famine. Notice that Joseph didn’t just give away the grain, but sold it—perhaps to replenish the treasury for the cost of buying the grain to begin with.