(א) וַיִּתְחַתֵּ֣ן שְׁלֹמֹ֔ה אֶת־פַּרְעֹ֖ה מֶ֣לֶךְ מִצְרָ֑יִם וַיִּקַּ֣ח אֶת־בַּת־פַּרְעֹ֗ה וַיְבִיאֶ֙הָ֙ אֶל־עִ֣יר דָּוִ֔ד עַ֣ד כַּלֹּת֗וֹ לִבְנ֤וֹת אֶת־בֵּיתוֹ֙ וְאֶת־בֵּ֣ית ה' וְאֶת־חוֹמַ֥ת יְרוּשָׁלִַ֖ם סָבִֽיב׃
(1) And Solomon became allied to Pharaoh king of Egypt by marriage, and took Pharaoh’s daughter, and brought her into the city of David, until he had made an end of building his own house, and the house of the LORD, and the wall of Jerusalem round about.
The end of the last perek speaks about Shimi's Death. and the opening of this Perek talks about how Shlomo married The daughter of פרעה. The Gemara Berachot 8B tells us that as long as Shlomo's Rebbi was alive he never married the Daughter of פרעה. We learn from this that having a close connection to a Rav helps prevent from falling
The Kli Yakar shows from Pasuk Gimel That Shlomo Followed all of Hashems ways that Even though Shlomo Should not have married her (even though he did indeed convert her) that his intentions were pure.
(ב) רַ֣ק הָעָ֔ם מְזַבְּחִ֖ים בַּבָּמ֑וֹת כִּ֠י לֹא־נִבְנָ֥ה בַ֙יִת֙ לְשֵׁ֣ם ה' עַ֖ד הַיָּמִ֥ים הָהֵֽם׃ (פ)
(2) Only the people sacrificed in the high places, because there was no house built for the name of the LORD until those days.
A Bama is used to described any Alter outside of the bet hamikdash or the mishkan. This was allowed after the destruction of Shilo until Shlomo Built the Bet Hamikdash
The connection between the first 2 Pesukim Is that even though it seems that Shlomo's Kingdom is firmly established, the Am is still sacraficing on Bamot a clear sign that the Shlomos kingdom was not complete as it was lacking the BH.
Again The fact that it mentions Shlomo bringin Korbanot on Bamot emphasises the lack of the temple.
This was the copper altar made in the Midbar (Rashi)
Shlomo mentions his father David because he knows that some of the merrit that allowed Shlomo success and to have this Nevua is from the love Hashem has for David
According to the Seder Olam who holds that Shlomo was twelve at the time when he became kind this statement is meant to be taken literally According to the Abarbanel who says that Shlomo was 20 upon being crowned kind, then this expression that Shlomo is young is a sign of huimility. This is Shlomo's way of saying I am not fit to lead the people.
(ט) וְנָתַתָּ֨ לְעַבְדְּךָ֜ לֵ֤ב שֹׁמֵ֙עַ֙ לִשְׁפֹּ֣ט אֶֽת־עַמְּךָ֔ לְהָבִ֖ין בֵּֽין־ט֣וֹב לְרָ֑ע כִּ֣י מִ֤י יוּכַל֙ לִשְׁפֹּ֔ט אֶת־עַמְּךָ֥ הַכָּבֵ֖ד הַזֶּֽה׃
לב שמע means a heart that understands (Radak) and כבד means many
Shlomo shows tremendous Yirat Shamaym to ask for understanding to properly judge the people (and not to just be the "smartest guy on the block") Shlomo did not ask for wealth but rather to be a good leader. We learn a tremendous lesson that Hashem wants to bestow blessings upon us but wants to see that we will use the gifts for Torah and Mitzvot.
The Shela says that someone who does not serve Hashem for reward then Hashem, will multiply his reward.
חכם - Wisdom is ther accumulation and retention of knowledge נבון- Is the ability to take that knowledge and apply it to the situation at hand and to have deductive reasoning. Radak
It is clearly stated that there was and never will be anyone as wise as Shlomo. However the Gemara in Megilla 13a says that Moshes wisdom was the greatest. The Radak suggests that Moshe was the wisest in Chochmat Elokim but Shlomo was wisest in chochmat hateva.
(יג) וְגַ֨ם אֲשֶׁ֤ר לֹֽא־שָׁאַ֙לְתָּ֙ נָתַ֣תִּי לָ֔ךְ גַּם־עֹ֖שֶׁר גַּם־כָּב֑וֹד אֲ֠שֶׁר לֹא־הָיָ֨ה כָמ֥וֹךָ אִ֛ישׁ בַּמְּלָכִ֖ים כָּל־יָמֶֽיךָ׃
We see that Shlomos life span or kingship was contingent on following the ways David had gone, however Shlomo's wisdom and wealth was unconditional.
(טו) וַיִּקַ֥ץ שְׁלֹמֹ֖ה וְהִנֵּ֣ה חֲל֑וֹם וַיָּב֨וֹא יְרוּשָׁלִַ֜ם וַֽיַּעֲמֹ֣ד ׀ לִפְנֵ֣י ׀ אֲר֣וֹן בְּרִית־אֲדֹנָ֗י וַיַּ֤עַל עֹלוֹת֙ וַיַּ֣עַשׂ שְׁלָמִ֔ים וַיַּ֥עַשׂ מִשְׁתֶּ֖ה לְכָל־עֲבָדָֽיו׃ (פ)
Rashi Says that when Shlomo awoke he realized that this dream was prophetic because he heard the chirping of the birds and barking of the dogs and understood there language. Shlomo that is why Shlomo comes to Yerushalayim to thank Hashem
Here we are introduced to the famous story where two women claim to be the mother of a baby. The connection to the previous pesukim, is to show that Hashems promise to Shlomo of wisdom to Judge the people came true
Targum explains that Zonot means inn keepers. The Abarbanel says that Zonot means harlots. According to the Abarbranel the purpose of pointing out the occupation of these women was to show that every person was able to receive judgment from Shlomo and that he was able to understand the minds of the most distant people from him
(יח) וַיְהִ֞י בַּיּ֤וֹם הַשְּׁלִישִׁי֙ לְלִדְתִּ֔י וַתֵּ֖לֶד גַּם־הָאִשָּׁ֣ה הַזֹּ֑את וַאֲנַ֣חְנוּ יַחְדָּ֗ו אֵֽין־זָ֤ר אִתָּ֙נוּ֙ בַּבַּ֔יִת זוּלָתִ֥י שְׁתַּֽיִם־אֲנַ֖חְנוּ בַּבָּֽיִת׃
No one lived in the house- therefore there were no witnesses (Metzudat David)
(כא) וָאָקֻ֥ם בַּבֹּ֛קֶר לְהֵינִ֥יק אֶת־בְּנִ֖י וְהִנֵּה־מֵ֑ת וָאֶתְבּוֹנֵ֤ן אֵלָיו֙ בַּבֹּ֔קֶר וְהִנֵּ֛ה לֹֽא־הָיָ֥ה בְנִ֖י אֲשֶׁ֥ר יָלָֽדְתִּי׃
A dayan is always supposed to repeat the two sides in front of the litigants. The Radak explains that this is in order to give both parties an opportunity to make sure that they were clearly understood. Rav Chaim Shmulevitz says that by repeating the claims the judge becomes more sensitive to the claims and will strive ever harder to come to an honest and just decision
Shlomo wants to provoke the passion of the true mother by devising this plan.
(כה) וַיֹּ֣אמֶר הַמֶּ֔לֶךְ גִּזְר֛וּ אֶת־הַיֶּ֥לֶד הַחַ֖י לִשְׁנָ֑יִם וּתְנ֤וּ אֶֽת־הַחֲצִי֙ לְאַחַ֔ת וְאֶֽת־הַחֲצִ֖י לְאֶחָֽת׃
(כו) וַתֹּ֣אמֶר הָאִשָּׁה֩ אֲשֶׁר־בְּנָ֨הּ הַחַ֜י אֶל־הַמֶּ֗לֶךְ כִּֽי־נִכְמְר֣וּ רַחֲמֶיהָ֮ עַל־בְּנָהּ֒ וַתֹּ֣אמֶר ׀ בִּ֣י אֲדֹנִ֗י תְּנוּ־לָהּ֙ אֶת־הַיָּל֣וּד הַחַ֔י וְהָמֵ֖ת אַל־תְּמִיתֻ֑הוּ וְזֹ֣את אֹמֶ֗רֶת גַּם־לִ֥י גַם־לָ֛ךְ לֹ֥א יִהְיֶ֖ה גְּזֹֽרוּ׃
(26) Then spoke the woman whose the living child was unto the king, for her heart yearned upon her son, and she said: ‘Oh, my lord, give her the living child, and in no wise slay it.’ But the other said: ‘It shall be neither mine nor thine; divide it.’
To the a real mother the life of her child is more important then her own happiness.
The reaction of the other women is shocking however. What does she gain by having the child killed. The Metzudos explains that her primary purpose was to deprive the real mother of the joy of motherhood because she herself was unable to have it as she accidently suffocated her own child.
Gemara Maakos 23b says that these words היא אמו were said by a bat kol in שמים as a way of confirming Shlomos decision. Rashi
People were afraid to even sin in public because they saw Shlomo was incredibly wise they were afraid he would somehow figure it out! (Radak). Rav Chaim Shmulevitz explains that the final decision was an obvious one but the Chochma of Shlomo was the plan he devised to bring out the passion of the mother.