ויקח אשה ושמה קטורה. ואע"ג דישראל אסור במצרית דכתיב בנים אשר יולדו להם דור שלישי הא דור שני לא יבא. והגר בת פרעה היתה כדפירש"י לעיל. איכא למימר גר הוא וגר מותר במצרית ובמדרש איתא על פי הדבור עשה: ויקח אשה ושמה קטורה, “he married a wife whose name was Keturah.” Although in years to come, Israelites were not permitted to marry Egyptians, seeing that the Torah decreed in Deuteronomy that only commencing with the third generation after conversion were Egyptians acceptable as potential marriage partners, even if it was Hagar who had been converted, the fact that her father was Pharaoh that made her only a second generation even if we consider him as a first generation convert. According to B’reshit Rabbah 61,4, Avraham married her at the express command by G–d.