(ג) וַיֶּֽאֱהַ֤ב שְׁלֹמֹה֙ אֶת־ה' לָלֶ֕כֶת בְּחֻקּ֖וֹת דָּוִ֣ד אָבִ֑יו רַ֚ק בַּבָּמ֔וֹת ה֥וּא מְזַבֵּ֖חַ וּמַקְטִֽיר׃ (ד) וַיֵּ֨לֶךְ הַמֶּ֤לֶךְ גִּבְעֹ֙נָה֙ לִזְבֹּ֣חַ שָׁ֔ם כִּי־הִ֖יא הַבָּמָ֣ה הַגְּדוֹלָ֑ה אֶ֤לֶף עֹלוֹת֙ יַעֲלֶ֣ה שְׁלֹמֹ֔ה עַ֖ל הַמִּזְבֵּ֥חַ הַהֽוּא׃
(1) And Shlomo loved Hashem, he conformed to the decrees of his father David. [During the first] four years, before beginning to build the Beis [Hamikdosh]. But once he began to build and Shlomo married Pharaoh’s daughter, consequently it states, “for as a provocation of anger and of fury has this city has been to me from the day that they built it until this day.”5Yirmiyahu 32:31. Thus we learned in Seder Olam. We learn that the passages are not written in chronological order. (2) Upon improvised altars he brought sacrifices. The text discusses his dishonor, [this occurred] because he delayed the construction of the Beis [Hamikdosh] four years.6Alternatively, Shlomo desired to attain prophetic revelation by offering sacrifices.—Ralbag
(ב) רק בבמות הוא מזבח ומקטיר. להגיע אליו הנבואה כי יש בהעלאת העולות רושם בהגעת הנבואה כמו שנתבאר בפרשת בלעם
On the altar he offered the sacrifices: Because he wanted to receive prophecy, for offerings have a powerful effect in generating prophecy, as we have explained with the story of Balaam.
(14) If, after you have entered the land that the LORD your God has assigned to you, and taken possession of it and settled in it, you decide, “I will set a king over me, as do all the nations about me,” (15) you shall be free to set a king over yourself, one chosen by the LORD your God. Be sure to set as king over yourself one of your own people; you must not set a foreigner over you, one who is not your kinsman. (16) Moreover, he shall not keep many horses or send people back to Egypt to add to his horses, since the LORD has warned you, “You must not go back that way again.” (17) And he shall not have many wives, lest his heart go astray; nor shall he amass silver and gold to excess. (18) When he is seated on his royal throne, he shall have a copy of this Teaching written for him on a scroll by the levitical priests. (19) Let it remain with him and let him read in it all his life, so that he may learn to revere the LORD his God, to observe faithfully every word of this Teaching as well as these laws. (20) Thus he will not act haughtily toward his fellows or deviate from the Instruction to the right or to the left, to the end that he and his descendants may reign long in the midst of Israel.