כִּֽי־הָיִ֨יתָ מָע֥וֹז לַדָּ֛ל מָע֥וֹז לָאֶבְי֖וֹן בַּצַּר־ל֑וֹ מַחְסֶ֤ה מִזֶּ֙רֶם֙ צֵ֣ל מֵחֹ֔רֶב כִּ֛י ר֥וּחַ עָרִיצִ֖ים כְּזֶ֥רֶם קִֽיר׃
Ибо Ты был оплотом для бедных, Оплот для нуждающихся в его бедственном положении, Убежище от шторма, тень от жары; Ибо взрыв страшных был как буря у стены.
Ibn Ezra
מְתוֹם A place containing soundness (תּוֹם ‘ soundness or integrity’). The form of the word is irregular, for it should be מָתוֹם like מָעוֹז (25:4). The same form is used Ps. 38:4. R. Moses Hakkohen says that מְתוֹם is the same as מְתִים ‘ people ;’ he quotes a parallel, Judges 20:48, and explains our verse, there is nothing in them that is good for man; but this explanation is rather far-fetched.
Ibn Ezra
הגרזן. An instrument to cut with. Comp. נגרזתי, I have been cut. (Ps. 31:23.) Shall the axe, etc. That is to say, It is God that has given the power to the Assyrians. משוד. Only one parallel is found to this word; וישר, And he cut (1 Chr. 20:3); it is derived from a verb ע״ע (שרר, to cut), after the form of מֽעוֹז, strength. 12מַשוֹר with Dagesh in ש and Pathah under מׇעוֹז ; מ has long Kamez under מ, to compensate for the omission of the Dagesh, because the succeeding letter is a guttural.
Rashi
shelter Every expression of מַחְסֶה is an expression of a shadow and a hiding place, where a person covers himself from flood and rain.