Sarai, Avram’s wife, had borne him no children. She had an Egyptian maidservant whose name was Hagar.
Rashi on Genesis 16:1 — Rashi explicitly cites Bereishis Rabbah 45:1 for the tradition that Hagar was Pharaoh’s daughter.
English: “A handmaid, an Egyptian” — she was Pharaoh’s daughter; when he saw the miracles done for Sarah, he said: Better that my daughter be a handmaid in this house than a mistress in another house.
Category C — Contextual / literary / narrative method.
Method — Rashi, citing Bereishis Rabbah, explains Hagar’s presence in Avraham’s household by linking her to the earlier Egyptian encounter: Pharaoh sent his own daughter as a gift after recognizing the sanctity of Avraham’s household.
Textual trigger — The identification of Hagar in Bereishis 16:1 and Rashi’s explanation of her Egyptian origin.
Parallel — Hagar’s later role in Avraham’s household is connected to the earlier episode in Egypt; the narrative background explains how she entered the family.
Supplementary classical material not listed by Torah Temimah under this exact passuk.