19 Now let my lord the king hear his servant out. If Hashem has incited you against me, let Him be appeased by an offering; but if it is men, may they be accursed of Hashem! For they have driven me out today, so that I cannot have a share in Hashem‘s possession, but am told, ‘Go and worship other gods.’
v’-a-TAH yish-ma NA a-do-NEE ha-ME-lekh AYT div-RAY av-DO im a-do-NAI he-see-t’-KHA VEE ya-RAKH min-KHAH v’-IM b’-NAY ha-a-DAM a-ru-REEM HAYM lif-NAY a-do-NAI kee gay-r’-SHU-nee ha-YOM may-his-ta-PAY-akh b’-na-kha-LAT a-do-NAI lay-MOR LAYKH a-VOD e-lo-HEEM a-khay-REEM
יט וְעַתָּה יִשְׁמַע־נָא אֲדֹנִי הַמֶּלֶךְ אֵת דִּבְרֵי עַבְדּוֹ אִם־יְהֹוָה הֱסִיתְךָ בִי יָרַח מִנְחָה וְאִם בְּנֵי הָאָדָם אֲרוּרִים הֵם לִפְנֵי יְהֹוָה כִּי־גֵרְשׁוּנִי הַיּוֹם מֵהִסְתַּפֵּחַ בְּנַחֲלַת יְהֹוָה לֵאמֹר לֵךְ עֲבֹד אֱלֹהִים אֲחֵרִים׃
26:19 Go and worship other gods
As Rashi explains, David makes the surprising claim that God told him to go and worship other gods, because he was compelled to run away to the land of the Philistines, and in a certain sense, leaving the Land of Israel is tantamount to worshipping idols. This is reflected in the Talmudic statement (Ketubot 110a), “one who lives outside of Eretz Yisrael is like one who has no God.” The Rabbis make this dramatic statement because the People of Israel are commanded to live in Eretz Yisrael, and it is the only place in the world where one can fulfill all of the commandments. It is also the place that Hashem has chosen to reveal Himself through awe inspiring miracles, from biblical through modern times. Hence, leaving the Land of Israel greatly reduces a person’s relationship with God, and is somewhat similar to idolatry.