Midras Mazmur 132:1: Mekhilta DeRabbi Yishmael, Midrash Tehillim, Ein Yaakov (Glick Edition) & Midrash Tanchuma

שִׁ֗יר הַֽמַּ֫עֲל֥וֹת זְכוֹר־יְהוָ֥ה לְדָוִ֑ד אֵ֝ת כָּל־עֻנּוֹתֽוֹ׃

Nyanyian pendakian. Ya Yang Mahakekal, ingatlah bagi Daud segala penderitaannya.

Mekhilta DeRabbi Yishmael

The eighth, that of Solomon, viz. (Psalms 30:1) "A psalm, a song of the inauguration of the Temple of David." Now did David built it? Did not Solomon build it? viz. (I Kings 6:14) "And Solomon built the Temple." Why, then, is it written "A psalm, a song of the inauguration of the Temple of David? But because David devoted his life to building it, it was called by his name. Similarly, (Psalms 132:1-6) "Remember, O L–rd, unto David, al of his tribulation (in seeking a place for Your sanctuary), which, (to find the place,) he swore to the L–rd, vowed to the Strength of Jacob: Forefend that I came to the test of my habitation (my palace), that I go up on the bed spread out before me, that I give (superfluous) sleep to my eyes or slumber to my lids, before I find the (fore-ordained) place for (the Temple of) the L–rd, the habitation of the Strength of Jacob. We had heard it (that place) to be in Efrat (the most select of places), and, lo, we have found it in the fields of the forest (in the boundary of Benjamin, who is likened to a beast of the forest" [viz. Genesis 49:27]). And what is written afterwards? (I Kings 12:16) "See your house, O David." Because David devoted his life to it, it was called by his name. And thus you find that whatever a man devotes his life to is called by his name.
Tanya RabiBookmarkShareCopy

Midrash Tehillim

Another interpretation of "Bikrei Anani" (a phrase from the beginning of Psalm 18): There were three things that troubled David, but God comforted him. The first was the destruction of the Temple. As it says (Psalm 132:1), "Remember, O Lord, for David all his hardships." And God comforted him by revealing to him the place where the Temple would be built, as it says (1 Chronicles 22:1), "Then David said, 'This is the house of the Lord God.'" The second thing that troubled David was the sin with Bathsheba. The people of Israel were saying that David deserved to die for what he had done. But God comforted him by saying (2 Samuel 12:13), "The Lord has taken away your sin. You will not die." The third thing that troubled David was the question of who would succeed him as king. God comforted him by promising that his son Solomon would be his successor, as it says (1 Chronicles 22:9-10), "Behold, a son will be born to you...and his name shall be Solomon...I will establish his kingdom forever." And when David asked, "Who will be born to me?" God replied, "Through whom will you be healed of your sins? Through the son of the woman with whom you sinned." This was revealed to David by the prophet Nathan, as it says (2 Samuel 12:25), "And he sent word through Nathan the prophet, and he named him Jedidiah."
Tanya RabiBookmarkShareCopy

Ein Yaakov (Glick Edition)

(Ib. b) Raba lectured: "What does the passage (I Sam. 19. 19) Behold, David is at Na'yoth near Ramah mean? Is then Na'yoth situated near Ramah? We must therefore say that they were at Ramah occupying themselves in the construction of Temple. They said: The passage reads (Deut. 17, 8) Then shalt thou arise, and get thee up unto the place which the Lord thy God shall choose; from this it may be inferred the Holy Temple ought to be higher [in elevation] than any other part of the land of Israel, and that the land of Israel is higher than all other land. They (David and his associates were not able to discover the exact spot [where the land is highest and thus suitable for the building of the Temple]. They finally brought the book of Joshua [and they found that] concerning all other tribes it reads (Josh. 15) It went up, it passed along and it went down, but concerning the tribe of Benjamin, the passage says (Ib. 18) It went up, but It went down is not mentioned. They then said from this it is inferred that there (Benjamin's portion) is the proper sight. They then contemplated erecting it in En Eitam for this is the highest elevation; it was, howere, argued that it should rather be built at a moderate elevation, for it is written (Deut. 33, 12) And He dwelleth between his shoulders [i.e., the shoulders are lower than the head, hence the altar should be built at a moderate elevation]." According to others, the decision came because we have a tradition that the Sanhedrin were to sit in the part of Juda and the Shechina was to rest in the part of Benjamin, therefore if the Temple were built at the highest elevation, the Sanhedrin would have been separated too far from the Sanctuary where the Shechina rests. They therefore decided to have it built at a lower site in order to conform the passage And He dwelleth between his shoulders. And for this thing did Doeg the Edomite envy David, as it is written (Ps. 69, 10) Because zeal for Thy house hath eaten me up, and the reproaches of them that reproach Thee are fallen upon me. And another passage reads (Ib. 132, 1) A song of ascends, etc. How he swore unto the Lord, and vowed unto the Mighty One of Jacob. Surely I will come, etc. Until I find out a place, etc. Lo, we heard it as being in Ephrath; we have found it at the field of the wood, i.e., Ephrath refers unto Joshua who is a descendant of Ephraim; at the field of the wood, refers unto Benjamin concerning whom it is written (Gen. 49, 27) A wolf that raveneth.
Tanya RabiBookmarkShareCopy