Genesis 42:1-38 (ESV)
1 When Jacob learned that there was grain for sale in Egypt, he said to his sons, “Why do you look at one another?” 2 And he said, “Behold, I have heard that there is grain for sale in Egypt. Go down and buy grain for us there, that we may live and not die.” 3 So ten of Joseph’s brothers went down to buy grain in Egypt. 4 But Jacob did not send Benjamin, Joseph’s brother, with his brothers, for he feared that harm might happen to him. 5 Thus the sons of Israel came to buy among the others who came, for the famine was in the land of Canaan.
6 Now Joseph was governor over the land. He was the one who sold to all the people of the land. And Joseph’s brothers came and bowed themselves before him with their faces to the ground. 7 Joseph saw his brothers and recognized them, but he treated them like strangers and spoke roughly to them. “Where do you come from?” he said. They said, “From the land of Canaan, to buy food.” 8 And Joseph recognized his brothers, but they did not recognize him. 9 And Joseph remembered the dreams that he had dreamed of them. And he said to them, “You are spies; you have come to see the nakedness of the land.” 10 They said to him, “No, my lord, your servants have come to buy food. 11 We are all sons of one man. We are honest men. Your servants have never been spies.”
12 He said to them, “No, it is the nakedness of the land that you have come to see.” 13 And they said, “We, your servants, are twelve brothers, the sons of one man in the land of Canaan, and behold, the youngest is this day with our father, and one is no more.” 14 But Joseph said to them, “It is as I said to you. You are spies. 15 By this you shall be tested: by the life of Pharaoh, you shall not go from this place unless your youngest brother comes here. 16 Send one of you, and let him bring your brother, while you remain confined, that your words may be tested, whether there is truth in you. Or else, by the life of Pharaoh, surely you are spies.” 17 And he put them all together in custody for three days.