וַיֵּצֵ֣א דָוִיד֮ לִפְנֵיהֶם֒ וַיַּ֙עַן֙ וַיֹּ֣אמֶר לָהֶ֔ם אִם־לְשָׁל֞וֹם בָּאתֶ֤ם אֵלַי֙ לְעָזְרֵ֔נִי יִֽהְיֶה־לִּ֧י עֲלֵיכֶ֛ם לֵבָ֖ב לְיָ֑חַד וְאִֽם־לְרַמּוֹתַ֣נִי לְצָרַ֗י בְּלֹ֤א חָמָס֙ בְּכַפַּ֔י יֵ֛רֶא אֱלֹהֵ֥י אֲבוֹתֵ֖ינוּ וְיוֹכַֽח׃ (ס)
And David went out to meet them, and answered and said unto them: ‘If ye be come peaceably unto me to help me, my heart shall be knit unto you; but if ye be come to betray me to mine adversaries, seeing there is no wrong in my hands, the God of our fathers look thereon, and give judgment.’
Rashi
In majesty. Regal clothing. But our Rabbis said that Divine Inspiration enwrapped her,1Maseches Megillah 14b. The text should have stated בגדי מלכות [regal clothing]. The inference is that she was cloaked in majesty itself, i.e., in Divine Majesty. as it is says, “And a spirit enwrapped Amasai.”2I Divrei Hayomim 12:19.
Rav Hirsch
ויתא ראשי עם וגו׳ sind Worte, die gleichsam als Grabschrift, die Mosche sich selber setzte, über der Gegend seiner Grabstätte, sein Andenken verewigend, schweben mögen. "Er war zur Führerschaft des Volkes gelangt und hatte als Gottes Gesandter alle die Wohltaten und die ernsten Verhängnisse zu vermitteln gehabt, welche Gott an Jisrael zu vollbringen beschlossen hatte." ראשי עם (vergl. Chron. I. 12, 18). ׳צדקת ד siehe Bereschit 15, 6.
Siftei Chakhamim
The Divine Presence, which had left him, rested on him. I.e., “spirit” refers to prophecy, as it is written (Divrei Hayamim I 12:18): “The spirit (רוח) clothed Amasai.”