סימן צד סעיף יג
מִי שֶׁאוֹכֵל בְּמָקוֹם אֶחָד וְיָשֵׁן בְּמָקוֹם אַחֵר, מְקוֹם אֲכִילָתוֹ הִיא הָעִקָּר לְעִנְיָן זֶה, וְשָׁם הוּא אוֹסֵר אִם אוֹכֵל שָׁם מִשֶּׁלּוֹ בְּחֶדֶר מְיֻחָד. אֲבָל בְּמָּקוֹם שֶׁהוּא יָשֵׁן, אֵינוֹ אוֹסֵר.
If a person eats in one place, and sleeps in another place, the place where he eats is his legal residence35If he would really prefer to eat in the place where he sleeps, then the place where he sleeps is his legal residence. [Rashba, Ritva, Peri Megadim, Bi’ur Halachah 370: 5] as far as the laws of eiruv are concerned. It is there that he prohibits [the other tenants from carrying if they were not included in the eiruv] if he eats his own food there, in a special room. But in the place where he sleeps he does not prohibit [the other tenants to carry].
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)