During the famine, Jacob sent his sons to Egypt to buy food, where they unknowingly encountered their brother Joseph, who was now the governor. Joseph tested his brothers’ character by accusing them of being spies and later framing the youngest, Benjamin, for theft to see if the older brothers would protect him. When Judah offered to take Benjamin’s place as a slave to spare their father’s grief, Joseph revealed his true identity and forgave them, explaining that God had sent him ahead to save their lives. Joseph then invited his entire family to move to Egypt, providing them with land and food to ensure their survival through the remaining years of the famine.