Rabbi Simeon bar Yohai deduced from the words, "and she had a handmaid, an Egyptian, whose name was Hagar," in that Hagar was Pharaoh's daughter. Rabbi Simeon taught that when Pharaoh saw what God did on Sarah's behalf, Pharaoh gave his daughter to Sarai, reasoning that it would be better for his daughter to be a handmaid in Sarai's house than a mistress in another house. Rabbi Simeon read the name "Hagar" in to mean "reward" ("agar"), imagining Pharaoh to say, "Here is your reward ("agar")."