✦ ❖ ✦
DAAT · LEVEL 1 — INTRODUCTION

Siman שמ"ד · 2 Seifim

Lost in the midbar — when does Shabbos begin? — to discover and understand
סימן שמ"ד
דִּין הַהוֹלֵךְ בַּמִּדְבָּר בְּשַׁבָּת
🌱 Introduction Level · מתחילים
✦ ❖ ✦

A first approach to Siman שמ"ד: the full Hebrew text of the Mechaber, a clear English translation, pedagogical explanations of the halachic concepts, modern practical cases, and a synthesis.

Subject: Lost in the midbar — when does Shabbos begin?
Source: שולחן ערוך אורח חיים סימן שמ"ד (2 seifim)

Compiled by: רב יוסף חיים סממה
DAAT · daattorah.com

📑 Study outline

1. The text of the Shulchan Aruch — the Mechaber's 2 seifim
2. The general context: why this siman, what is the question?
3. The key halachic concepts of this siman
4. The seifim in detail — one by one
5. The Mishnah Berurah — opening entries
6. The position of the Rama — Ashkenazi vs. Sephardi differences
7. Modern practical cases
8. Practical synthesis and rules to remember
9. Comprehension questions

1. The text of the Shulchan Aruch

Siman שמ"ד contains 2 seifim of the Mechaber (Rav Yosef Karo) that codify the halachos of din haholech bamidbar b'Shabbos.

Seif א

דין ההולך במדבר בשבת. ובו ב סעיפים:
ההולך במדבר ואינו יודע מתי הוא שבת מונה שבעה ימים מיום שנתן אל לבו שכחתו ומקדש השביעי בקידוש והבדלה ואם יש לו ממה להתפרנס אסור לו לעשות מלאכה כלל עד שיכלה מה שיש לו ואז יעשה מלאכה בכל יום אפילו ביום שמקדש בו כדי פרנסתו מצומצמת ומותר לילך בו בכל יום אפי' ביום שמקדש בו:
Translation: The halachos of one who travels in the midbar on Shabbos. One who travels in the midbar and does not know which day is Shabbos — counts seven days from the day he became aware of his forgetting, and is mekadesh the seventh with kiddush and havdalah. If he has enough to sustain himself, he is assur to do any melachah until his provisions run out; then he may work each day — even the day he is mekadesh — but only the strict measure of his sustenance. And he is permitted to walk each day, even the day he is mekadesh.

Seif ב

היה יודע מנין יום שיצא בו כגון שיודע שהיום יום רביעי או יום חמישי ליציאתו אבל אינו יודע באיזו יום יצא מותר לעשות מלאכה כל מה שירצה ביום שמיני ליציאתו שביום כזה יצא מביתו דבודאי לא יצא בשבת וכן ביום ט"ו וביום כ"ב וכן לעולם:
Translation: If he knows the count of his departure day — e.g. he knows today is the fourth or fifth day since he left, but does not know on which weekday he set out — he is permitted to do whatever melachah he wishes on the eighth day since departure. For that is the same weekday on which he left his home, and it is certain he did not set out on Shabbos. Likewise the fifteenth day, the twenty-second day, and so on indefinitely.
Full text: these 2 seifim constitute the entirety of the Mechaber's codification on this subject. Each spells out a case, a condition, or an exception.

2. The general context

What is this siman about?

Siman שמ"ד deals with an extreme but conceptually rich case: a person lost in the midbar who has lost track of the days and no longer knows when Shabbos falls. How does one keep Shabbos when one does not know which day it is? The siman applies the halachah to a situation of total doubt about the calendar.

The fundamental question: when the day of Shabbos is unknown, the halachah does not give up — it institutes a "substitute Shabbos." The traveler counts seven days and keeps the seventh as Shabbos. But since it is only a Shabbos of doubt, vital needs (sustenance) may take precedence.

Place within Hilchos Shabbos

Siman שמ"ד closes a small series of simanim dealing with situations of distress and doubt (traveler, midbar). It illustrates a key principle: doubt does not nullify the mitzvah — it reorganizes it. The source is in the Gemara (Shabbos 69b), a famous discussion.

3. The key halachic concepts

Four concepts structure this siman:

The essential concepts of Siman שמ"ד:

4. The seifim in detail — one by one

Seif א — The traveler who has forgotten everything

One who no longer knows at all which day is Shabbos counts seven days from when he became aware of the forgetting, and keeps the seventh with kiddush and havdalah. A decisive distinction based on his provisions:

SituationConductReason
He has provisionsNo melachah, no day, until they run outAs long as he survives, the safek Shabbos is respected
Provisions goneHe works each day the strict minimal sustenance — even the "sanctified" 7th dayPikuach nefesh: survival takes precedence over an uncertain Shabbos
Walking (traveling)Permitted every day, even the 7thOrdinary walking is not a melachah

Seif ב — The traveler who knows his departure day

If he knows how many days have elapsed since departure (without knowing the weekday on which he left), he can reason: he surely did not set out on Shabbos. So the 8th day since departure corresponds to the same weekday as departure — a certain weekday. Likewise the 15th, the 22nd, etc. On those days he may work freely.

The heart of the siman: faced with doubt, one does not abandon Shabbos — one builds a marker (the 7th day). But this marker yields before survival (minimal sustenance), and falls away wherever reasoning yields a certainty (the departure days).

5. The Mishnah Berurah — opening entries

The Mishnah Berurah of Rav Yisrael Meir Kagan (the Chafetz Chaim) has 11 entries on this siman. Here are the opening ones — to better understand the pshat of the seifim:

משנה ברורה (א) — (א) ההולך במדבר - וה"ה אם נשבה בין העו"ג ונשכח יום שבת ממנו [ירושלמי] אך לפעמים בזה יכול לברר מחשבונותם באיזה יום חל שבת שלנו:
משנה ברורה (ב) — (ב) מיום שנתן וכו' - ר"ל מיום שנפל בלבו הספק מתי הוא שבת ואותו היום גופא הוא יום א' למנין ששת ימי החול:
משנה ברורה (ג) — (ג) בקידוש והבדלה - דהיינו שעושה קידוש על הפת והיין כדין ותקנו חכמים זה לזכרון שלא תשתכח תורת שבת ממנו ואם אין לו יקדש ע"י התפלה דהא התפלה הוא מתפלל של שבת ביום זה כמ"ש הפמ"ג ויוצא בזה מדאורייתא אפילו אם היום הוא באמת שבת כמבואר לעיל בסימן רע"א במ"ב ע"ש וגם יבדיל בתפלה שאומר אתה חוננתנו ויוצא בזה ע"פ הדחק מצות הבדלה:

For the full text of the entries, see Sefaria: Mishnah Berurah 344.

6. The position of the Rama

The Rama adds no hagahah to this siman: the Mechaber and the Rama agree here, and the halachah is unified for Sephardim and Ashkenazim alike. It is mainly the Acharonim — Mishnah Berurah, Pri Megadim — who spell out the practical details.

Points of detail from the Acharonim:

7. Modern practical cases

The "midbar" case seems rare, but its principle — keeping Shabbos amid doubt of the calendar — has very concrete applications:

SituationQuick analysis
Prolonged travel / isolation (the open sea, an expedition, a long hospitalization with loss of time)If one has lost track of the days: count seven days and be mekadesh the seventh.
Crossing the international date lineA distinct but related modern question; requires a specific rabbinic ruling.
Partial doubt (one knows the number of days elapsed since a certain marker)Apply seif ב: identify days certainly not Shabbos (8th, 15th…).
Lack of means of sustenanceSurvival takes precedence: minimal vital work permitted each day, even the "sanctified" day.
For precise practical cases: these situations are rare and delicate. For the halachah l'maaseh, you must consult your Rav.

8. Practical synthesis of the siman

The lessons of Siman שמ"ד:
  1. Doubt does not nullify Shabbos: one who has lost the calendar counts seven days and is mekadesh the seventh (kiddush, havdalah).
  2. Survival takes precedence: without provisions, one works each day the strict minimal sustenance — even the sanctified day.
  3. With provisions: no melachah, no day, until they run out.
  4. Ordinary walking is permitted every day.
  5. If one knows the count from departure: days 8, 15, 22… are certainly not Shabbos — free melachah.
  6. For the halachah l'maaseh, consult your local Rav.

9. Comprehension questions

Check your understanding:
  1. What is the general subject of Siman שמ"ד?
  2. How many seifim does this siman contain? What is the theme of each?
  3. What is the difference between the Mechaber and the Rama (if any)?
  4. Which structuring halachic concepts appear in this siman?
  5. What is the practical takeaway for daily life?
  6. In which borderline cases should one consult a Rav?

To go further

If you wish to delve deeper into this siman:
Continue the study — next simanSiman 345 →
~ ~ ~ ~ ~
DAAT · רב יוסף חיים סממה

סימן שמ"ד · Level 1 — Introduction
♥ Support DAAT
📖Join the chavrusa