Rav Yehuda said in the name of Rav: From where do we learn that a person should not change his lodging? As it is said, "to the place where his tent had been at the beginning" (Genesis 13:3). Rabbi Yose bar Chanina says: From here, "and he went on his journeys" (Genesis 13:3). What is the difference between them? Between them there is the case of a chance, one-time lodging. Until what point may a person not change his lodging? Rav said: Up to a beating. And Shmuel said: Up to the point that the host slings his belongings onto his back to throw him out. Regarding a beating that the host himself gives, all agree he need not stay; and regarding the host slinging his belongings onto his back, they also do not disagree. Where they disagree is regarding a beating given by the host's wife: one master holds that since she is not paining him directly, what does it matter to him; and the other master holds that he will come to be driven away anyway. Why all this concern? Because the master said: An unworthy guest disgraces and is disgraced.
Why a Traveler Should Not Change the Lodging Where He First Stayed
Yalkut Shimoni on Torah 69:4
אָמַר רַב יְהוּדָה אָמַר רַב, מִנַּיִן שֶׁלֹּא יְשַׁנֶּה אָדָם אַכְסַנְיָא שֶׁנֶּאֱמַר, (אֶל) [עַד] הַמָּקוֹם אֲשֶׁר הָיָה שָׁם אָהֳלֹה בַּתְּחִלָּה. רַבִּי יוֹסֵי בַּר חֲנִינָא אוֹמֵר, מְהָכָא, וַיֵּלֵךְ לְמַסָּעָיו מַאי בֵּינַיְיהוּ, אִיכָּא בֵּינַיְיהוּ אַכְסַנְיָא דְּאַקְרָאי עַד הֵיכָן לֹא יְשַׁנֶּה אָדָם אַכְסַנְיָא שֶׁלּוֹ, רַב אָמַר, עַד הַכָּאָה וּשְׁמוּאֵל אָמַר, עַד שֶׁיַּפְשִׁיל לוֹ כֵּלָיו לַאֲחוֹרָיו בְּהַכָּאָה דִידֵיהּ כּוּלֵי עַלְמָא לֹא פְּלִיגֵי בְּהַפְשָׁלַת כֵּלָיו לַאֲחוֹרָיו נַמִּי לֹא פְּלִיגֵי, כִּי פְּלִיגֵי בְּהַכָּאָה דִדְבִיתְהוּ מַר סָבַר כֵּיוָן דְּלְדִידֵיהּ לֹא קָא מְצַעֵר לֵיהּ מַאי נַפְקָא לֵיהּ מִינֵהּ וּמַר סָבַר אָתֵי לְאַטְרוּדֵי כָּל כָּךְ לָמָּה דְּאָמַר מַר אַכְסַנְיָא פּוֹגֵם וְנִפְגָּם.