וַיִּתְחַתֵּ֣ן שְׁלֹמֹ֔ה אֶת־פַּרְעֹ֖ה מֶ֣לֶךְ מִצְרָ֑יִם וַיִּקַּ֣ח אֶת־בַּת־פַּרְעֹ֗ה וַיְבִיאֶ֙הָ֙ אֶל־עִ֣יר דָּוִ֔ד עַ֣ד כַּלֹּת֗וֹ לִבְנ֤וֹת אֶת־בֵּיתוֹ֙ וְאֶת־בֵּ֣ית יְהוָ֔ה וְאֶת־חוֹמַ֥ת יְרוּשָׁלִַ֖ם סָבִֽיב׃
Salomo verschwägerte sich mit Pharao, dem König von Ägypten. Er nahm die Tochter Pharaos zur Frau und brachte sie in die Stadt Davids, bis sein Haus und das Haus des Herrn und die Mauern um Jerusalem fertig waren.
Niddah
One verse says “For the Lord has chosen Zion…” (Tehillim 132:13) and another verse says “For this city has aroused My anger and My wrath since the day they built it until this day…” (Yirmiyahu 32:31) One is before Shlomo married the daughter of Pharaoh, the other is after Shlomo married the daughter of Pharaoh.