Shulchan Arukh, Orach Chayim
Shulchan Arukh, Orach Chayim 333:1
The Shulchan Arukh provides practical guidelines for performing the mitzvah of hospitality, reflecting its significance in Jewish law.
שלא לפנות אוצר בשבת. ובו ג סעיפים: אוצר של תבואה או של כדי יין אע"פ שמותר להסתפק ממנו אסור להתחיל בו לפנותו אלא לדבר מצוה כגון שפינהו להכנסת אורחים או לקבוע בו בית המדרש וכיצד מפנהו אם היה האוצר גדול מפנה ממנה חמשה קופות (שבכל קופה שלש סאים) (הגהות מרדכי ור"ן פרק מפנין) לא היה בו אלא חמשה קופות מפנה מהם ארבעה אבל כולו לא יפנה שמא יבא להשוות גומות: הגה וכל שבות שהתירו משום צורך מצוה מותר ג"כ לצורך אורחים ולא מקרי אורחים אלא שנתארחו אצלו בביתו או שזימן אורחים שנתארחו אצל אחרים (תרומת הדשן סי' ע"ב) אבל כשזימן חבירו לסעוד אצלו לא מקרי אורחים ואינה סעודת מצוה רק סעודת רשות: אלו ד' או ה' קופות שמפנה היינו לאורח א' ואם באו לו הרבה מפנה כשיעור הזה לכל אורח ואורח ובלבד שלא יפנה א' לכולם דאיכא טירחא יתירא אלא כל א' יפנה לעצמו או אחר יפנה בעדו: הגה חביות של יין שהובאו על עגלה אסור להורידן בשבת אם לא לכבוד אורחים או לצורך מצוה דהוי כמפנה האוצר (א"ז):
That one should not empty a storehouse on Shabbat. Containing 3 paragraphs: Even though it is permitted to take supplies from a storehouse of produce or wine barrels, it is forbidden to begin emptying it except for a mitzvah, like emptying it to host guests or to make a house of study inside. How should he empty it? If it is a big storehouse, he removes five kupas, (every kupa being three seahs) (Hagahot Mordechai and Ran in Perek HaMefanin). If the storehouse only has five kupas, he removes four kupas, but not all of them, lest he come to fill crevices in the floor. Rem"a: Every abstention from work that was allowed for the sake of a mitzvah is also allowed for the sake of guests. They are not referred to as "guests" unless they are staying in his house or he has invited guests staying at another house (Trumat Hadeshen Chapter 72), but if he just invites his friend to eat with him, he is not called a guest and the meal is not a commanded meal but just optional (Beit Yosef). These four or five kupas that he removes are for one guest, but if multiple guests come, he removes this measurement for each one. One person should not clear it out for everyone because this is a lot of work. Rather, every individual should clear space for himself or someone else can do it for him. Rema: It is forbidden to lower wine barrels brought by wagon, unless it is for honoring guests or for the sake of a mitzvah, in which case it is like clearing a storehouse (Or Zarua).