Genesis 42:1-17 ESV
When Jacob learned that there was grain for sale in Egypt, he said to his sons, “Why do you look at one another?” 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.” So ten of Joseph’s brothers went down to buy grain in Egypt. But Jacob did not send Benjamin, Joseph’s brother, with his brothers, for he feared that harm might happen to him. Thus the sons of Israel came to buy among the others who came, for the famine was in the land of Canaan.
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. 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.” And Joseph recognized his brothers, but they did not recognize him. 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.” They said to him, “No, my lord, your servants have come to buy food. We are all sons of one man. We are honest men. Your servants have never been spies.”
He said to them, “No, it is the nakedness of the land that you have come to see.” 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.” But Joseph said to them, “It is as I said to you. You are spies. By this you shall be tested: by the life of Pharaoh, you shall not go from this place unless your youngest brother comes here. 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.” And he put them all together in custody for three days.
ESV: English Standard Version 2016