וַיֹּ֣אמֶר דָּ֠וִד לְכָל־עֲבָדָ֨יו אֲשֶׁר־אִתּ֤וֹ בִירוּשָׁלִַ֙ם֙ ק֣וּמוּ וְנִבְרָ֔חָה כִּ֛י לֹא־תִֽהְיֶה־לָּ֥נוּ פְלֵיטָ֖ה מִפְּנֵ֣י אַבְשָׁל֑וֹם מַהֲר֣וּ לָלֶ֗כֶת פֶּן־יְמַהֵ֤ר וְהִשִּׂגָ֙נוּ֙ וְהִדִּ֤יחַ עָלֵ֙ינוּ֙ אֶת־הָ֣רָעָ֔ה וְהִכָּ֥ה הָעִ֖יר לְפִי־חָֽרֶב׃
David sprach darauf zu all seinen Dienern, die bei ihm in Jerusalem waren: Machet euch auf, lasset uns fliehen; denn es wird für uns sonst kein Entkommen sein vor Awschalom. Eilet davon zu gehen, dass er uns nicht rasch nachkomme und uns erreiche, über uns Verderben bringend und alle Einwohner der Stadt niedermachend.
Rashi
A song of David, when he fled The Aggadists expounded many homilies on this matter. Our Sages said (Ber. 7a): When the prophet said to him (in II Sam. 12:11), “Behold I will raise up against you evil out of your own house etc.,” his heart was quaking, perhaps a slave or a mamzer [a child of an illicit union] will rise up against me, who will not have mercy on me. As soon as he found out that it was his son, he was happy. The Midrash Aggadah (Midrash Psalms 3:3) [states]: Because he saw his order intact, for his servants, and the Kerethite and Pelethite, who were the Sanhedrin were affirming his lordship over themselves. When he said to them (ibid. 15:14), “Arise and let us flee etc. from Absalom,” what is written there? (verse 15) “Whatever my lord the king shall choose, behold your servants [are ready to do].” And when he came to Mahanaim (ibid. 17:27), “Shobi, etc. and Machir the son of Amiel, etc. and Barzilai the Gileadite” came to meet him and sustained him there.