שִׁ֥יר הַֽמַּֽעֲל֗וֹת לִשְׁלֹ֫מֹ֥ה אִם־יְהוָ֤ה ׀ לֹא־יִבְנֶ֬ה בַ֗יִת שָׁ֤וְא ׀ עָמְל֣וּ בוֹנָ֣יו בּ֑וֹ אִם־יְהוָ֥ה לֹֽא־יִשְׁמָר־עִ֝֗יר שָׁ֤וְא ׀ שָׁקַ֬ד שׁוֹמֵֽר׃
Isang Awit ng mga Pag-akyat; para kay Solomon. Kung hindi ang Walang-Hanggan ang magtatayo ng bahay, walang kabuluhan ang pagpapagal ng mga nagtatayo nito; kung hindi ang Walang-Hanggan ang magbabantay sa lungsod, walang kabuluhan ang pagpupuyat ng bantay.
Rashi
A song of ascents about Solomon This song David recited about his son, Solomon, for he saw through the holy spirit that he [Solomon] was destined to build the Temple, and on that very day, Solomon would marry Pharaoh’s daughter, and concerning this was said (Jer. 32:31): “For this city has aroused My anger and My wrath since the day they built it.” Therefore, he recited this song. My son, why should you build a house and turn away from following the Omnipresent? Since He does not desire it, its workers have toiled at it in vain.
Rashi
[its] watcher keeps his vigil in vain The watchman watches it in vain.