YWRabbi Yosef WeizmanTorah. Thought. Life.
Fromגם לנשמה מגיע אוכל

Is It Permitted to Sleep in a Synagogue or Study Hall? A Proof from the Weekly Portion

How do the laws of reverence for sacred spaces apply to sleeping in a synagogue or study hall?

Is It Permitted to Sleep in a Synagogue or Study Hall? A Proof from the Weekly Portion

Heavy night shadows cover the hills of Bet El, and a cool breeze moves between the rocks as Jacob our father lays his head upon the stones of the place and falls asleep. In his dream the gates of heaven open, a ladder is set upon the earth and its top reaches heaven, and angels of God ascend and descend upon it. At dawn, when Jacob awakens, awe seizes him and he cries: “Surely the Lord is in this place, and I did not know” (Genesis 28:16). Rashi explains that had Jacob known the sanctity of the place, he would not have slept there.

Rabbi Yitzhak Magriso, in Me’am Lo’ez (Genesis 28:16), notes that this becomes a foundation for the rule that one may not sleep in a synagogue or study hall because of the holiness of the place.

Yet a great difficulty appears. Megillah 28a records that Rabbi Zeira’s students asked him: “By what merit did you live long?” Among his answers he said: “Never in my life did I sleep in the study hall, neither a permanent sleep nor a temporary sleep.” The wording sounds as though refraining from sleep was a special pious practice rather than the basic law. Otherwise, what would be remarkable about it? Yet Sanhedrin 71a records Rabbi Zeira himself saying: “Whoever sleeps in the study hall, his Torah becomes torn to pieces,” citing “drowsiness clothes a person in rags.” This sounds like a sharp prohibition. How do these teachings fit together? What exactly is prohibited, what is permitted to Torah scholars, and what was Rabbi Zeira’s special level of piety?

The Torah states: “Jacob awoke from his sleep and said: Surely the Lord is in this place, and I did not know” (Genesis 28:16). Then: “He was afraid and said: How awesome is this place! This is none other than the house of God, and this is the gate of heaven” (Genesis 28:17).

The verses reveal a dramatic awakening. Jacob had thought he was simply resting at a stopping place. After the dream he understood that he was lying in the “house of God,” a place aligned with the heavenly gate. This becomes a root for reverence toward sacred spaces.

Rashi explains “and I did not know” to mean: had I known, I would not have slept in such a holy place. The sanctity of the location itself demanded different conduct.

Ibn Ezra explains that Jacob was preoccupied with fear of Esau and his soul was not prepared for the prophetic vision until he slept. The greatness of the place remained hidden until Heaven revealed it.

Ramban explains that Jacob was not yet a prophet in the full sense and that God revealed the glory of the place to him through a dream, beginning his ascent in prophetic apprehension.

Radak explains “how awesome is this place” as meaning that a person should feel reverence and awe there, because it is designated for heavenly beings and Divine revelation.

Ralbag explains that a place where God is revealed is called the house of God because it is especially prepared to receive Divine influence. Such a place should not be treated with ordinary weekday casualness.

Hizkuni explains “and I did not know” as meaning that Jacob had not imagined that God would reveal Himself to him there. He had assumed that the Shekhinah was associated with the land and home of his fathers.

Sforno explains “this is the gate of heaven” as referring to a place aligned with the heavenly Temple, through which Israel’s prayers rise.

Targum Onkelos renders Jacob’s words: “Truly the glory of the Lord is in this place, and I did not know.” Targum Yonatan similarly emphasizes the presence of the glory of the Shekhinah.

Kli Yakar finds an inner allusion in the word “anokhi”—“I.” Jacob had been absorbed in his own fear and bodily concerns, and therefore had not perceived the higher holiness surrounding him.

From the Torah commentators we enter the Talmudic discussion of sleeping in sacred places.

Megillah 28a records Rabbi Zeira’s testimony about his conduct: his students asked by what merit he had attained long life, and he listed several practices, including never sleeping in the study hall, neither a permanent nor a temporary sleep. Rashi explains this abstention as arising from the sanctity of the study hall. Rabbi Zeira treated even a brief nap there with exceptional reverence.

Sanhedrin 71a records Rabbi Zeira’s own warning: “Whoever sleeps in the study hall, his Torah becomes torn to pieces, as it says, ‘drowsiness clothes a man in rags.’” The statement portrays sleep in the place of Torah as spiritually dangerous.

Berakhot 25a, however, describes Rav’s students learning and sleeping in the study hall: “some were sleeping and some were studying.” This proves that Torah scholars permanently attached to the study hall did sometimes sleep there.

Tosafot on Megillah 28a reconcile the sources by distinguishing between ordinary people and Torah scholars or their students who are permanently based there. For them, the study hall functions like a dwelling place. Because they remain there constantly for Torah, they may attend to necessary human needs there, including sleep when required.

The Jerusalem Talmud, Yoma 1:1, discusses the status of the study hall as a living environment for scholars and students who remain there day and night. Although its sanctity is great, it also functions as their dwelling for the sake of Torah.

Rashba, Hiddushei HaRashba to Megillah 28b, explains that study halls, despite their holiness, become a kind of home for scholars and their students because Torah is their occupation and they remain there constantly. Eating and sleeping there can therefore be permitted as needs of their Torah life.

Ramban, Hiddushei HaRamban to Megillah 28a, resolves the contradiction in Rabbi Zeira’s teachings by distinguishing permanent sleep from a temporary nap needed by a Torah scholar. The harsh warning in Sanhedrin refers to a settled sleep associated with neglect and bittul Torah. A brief nap taken by a scholar exhausted from learning can be permitted. Rabbi Zeira’s special piety was that he refrained even from such temporary sleep.

Rambam, Mishneh Torah, Laws of Prayer and Priestly Blessing 11:6, rules that synagogues and study halls may not be treated frivolously: one may not eat, drink, stroll, or sleep there, whether permanent or temporary sleep. Yet Torah scholars and their students may eat and drink there in pressing circumstances, and sleeping in the study hall is permitted for them because of their continuous Torah life.

The Rosh, Pesakim to Megillah chapter 4, distinguishes synagogue from study hall. A synagogue is principally designated for prayer, making ordinary uses more severe. A study hall was established precisely so that scholars could sit there and learn day and night; necessary sleep can therefore be permitted when it supports continued study.

Among the Aharonim, the First LeZion commentary on Megillah explains Rabbi Zeira’s special merit in another way. Even if sleep is generally forbidden, people may occasionally succumb unintentionally to drowsiness. Rabbi Zeira testified that throughout his life he was never overcome even accidentally by sleep in the study hall. Such lifelong vigilance required exceptional effort and heavenly assistance.

Maharsha on Megillah 28a suggests that the basic prohibition concerns permanent sleep, while Rabbi Zeira went beyond the law by avoiding even a temporary nap. That extra degree of reverence explains why he counted it among the merits associated with his long life.

The Shakh, Siftei Kohen, explains that the central prohibition regarding a study hall concerns settled sleep. A temporary nap by students who wish to regain strength and return immediately to learning is not included in the same way.

Ein Eliyahu on Sanhedrin 71a gives Rabbi Zeira’s statement an additional inner meaning. “Whoever sleeps in the study hall” can describe one who learns without vitality, mechanically, as though spiritually asleep. Such Torah becomes “torn pieces” because study lacking life and inner presence does not remain deeply engraved within the person. Rabbi Zeira’s greatness was that his Torah was never spiritually drowsy.

Shulhan Arukh (Orah Hayyim 151:4) rules that one may not eat, drink, adorn oneself, stroll, enter to escape heat or rain, or sleep in a synagogue, whether permanent or temporary sleep. Uses needed for the synagogue itself may be permitted in appropriate circumstances.

Rema adds a special rule for scholars and students: they may sleep in the study hall because they live there in the service of Torah.

Imrei Emet interprets Rabbi Zeira’s warning not only physically but spiritually. A person can sit inside the study hall while his learning has become routine, weak, and detached from passionate attachment. That is a form of “sleep” whose result is a fragmented Torah.

Mishnah Berurah (151:16) explains that although study halls possess serious sanctity, scholars and students whose Torah occupation keeps them there may sleep when needed because the study hall functions as their dwelling. A temporary nap taken to gather strength for continued learning is itself regarded as part of the need of Torah.

A responsum cited in Pithei Teshuvah discusses scholars who have no other home in a city. The study hall can become their full dwelling for necessary needs. This expresses the concept of “the house of the rabbis” wherever their Torah life takes them.

Maran Rabbi Ovadia Yosef, Hazon Ovadia, explains that Torah scholars and yeshiva students who are fixed in their learning may, according to basic law, doze in the study hall when this enables them to continue learning with diligence. One who nevertheless avoids sleep there even in difficulty acts with an elevated degree of reverence, modeled on Rabbi Zeira.

My teacher Rabbi Asher Weiss, Minhat Asher on Genesis, explains that two elements coexist in the study hall: it is the dwelling place of those who live in Torah, and it is a place in which the Shekhinah rests. The first element permits necessary sleep for students; the second explains Rabbi Zeira’s exceptional desire to avoid all sleep in order to preserve absolute awe before the Divine Presence.

My teacher Rabbi Shmuel HaLevi Wosner, Responsa Shevet HaLevi (vol. 9, no. 280), explains that the permission for students applies only when sleep serves the continuity of study and not when it becomes pleasure, leisure, or casual use. A measured nap necessary to strengthen the body for Torah can itself become part of sacred service.

Several practical rulings emerge.

For an ordinary person who comes to pray or learn in a synagogue or study hall, sleeping there is generally prohibited because of reverence for the sacred place and the ban on frivolous use.

Torah scholars and yeshiva students whose regular life is centered in the study hall may take a necessary temporary nap there in order to gather strength for continued study. The study hall functions for them as a dwelling place, and the sleep serves Torah rather than leisure.

On nights such as Yom Kippur, when communities may remain in the synagogue for prayer and study throughout the night, there can be special grounds for permitted necessary sleep because it serves the needs of the day and the sacred gathering. Even then, dignity and reverence must be preserved.

A person who is exhausted during learning or prayer and has another appropriate place to rest should, if he is not among the scholars for whom the study hall serves as a regular dwelling, leave the sanctuary rather than turn the sacred place into an ordinary sleeping area.

The deeper principle is not an arbitrary restriction. Sleep is a state in which active consciousness withdraws. A person releases control and enters a condition of reduced awareness. A synagogue and study hall represent the opposite: awakened soul, spiritual alertness, and conscious standing before God. Sacred space asks for presence.

Jacob’s cry upon waking reflects precisely this contrast. Once he discovered that he had slept at the gate of heaven, he recognized the distance between unconsciousness and the awesome consciousness demanded by the place.

Yet this very depth explains the exception for Torah scholars. For them, the study hall is not merely somewhere they visit. It is the environment of their life. A student who dozes briefly at his stand after hours of study is not abandoning holiness. His sleep may be an instrument for returning to Torah with renewed strength. It can be part of continuity rather than interruption.

Rabbi Zeira’s exceptional practice therefore takes on its full meaning. Even though the law allowed a scholar a necessary temporary sleep, his sense of awe was so intense that he did not permit himself even that. His conduct was not necessarily the minimum required from everyone; it was an extreme expression of reverence.

The physical question also becomes a mirror for spiritual life. A person can be physically awake in the study hall and spiritually asleep. Routine can turn prayer and learning into mechanical repetition. The body is present in holiness while the heart lies elsewhere. Rabbi Zeira’s warning—“his Torah becomes torn pieces”—is therefore a call against inner drowsiness as much as a warning about physical sleep.

A person seeking long spiritual life must preserve a point of wakefulness. Even when tired by circumstances and burdened by routine, he should not allow the soul to become numb. Every moment in a sacred place is an opportunity to meet the Shekhinah.

The moral compass emerging from the discussion demands concentration and full presence in everything sacred and valuable. Human beings tend to seek compromise, satisfying conscience with physical attendance while mind and heart remain dispersed. Jacob’s alarm and Rabbi Zeira’s vigilance teach that holiness must not become a refuge for habit or casualness.

A second moral demand is mastery over the pursuit of comfort. The ability to govern bodily fatigue, preserve reverence, and know when to surrender comfort for something higher refines character. Yet this must remain balanced by halakhah: when rest is genuinely needed in order to continue Torah, sleep itself may become part of service.

From here we take several daily lessons. Treat synagogues and study halls with exceptional dignity and avoid unnecessary casual behavior. Fight spiritual routine by bringing freshness, joy, and conscious presence into learning and prayer. And train the body to serve the soul while remembering that responsible rest, when truly needed for continued sacred work, is not an enemy of holiness.

The Main Point:

Jacob’s regret over sleeping at Bet El and Rabbi Zeira’s apparently conflicting teachings are reconciled by the halakhic distinctions among places, people, and kinds of sleep. As a general rule, ordinary sleep in a synagogue or study hall is prohibited because of reverence for sacred space. Torah scholars and students, however, whose study hall functions as their dwelling and whose temporary nap is needed to continue learning, have a special allowance. Rabbi Zeira’s statement that one who “sleeps” in the study hall has his Torah torn to pieces can refer to settled, idle sleep and, on an inner level, to lifeless study. His personal refusal to sleep even a temporary sleep was an exceptional degree of piety and awe.

When a person awakens his soul from habitual drowsiness and preserves pure alertness in sacred space, he becomes able to feel the awe of the Divine Presence. When reverence and mindful presence become part of life itself, the gates of heaven open and the human being becomes a faithful dwelling for Divine light.

הדברים נגעו בכם? שתפו אותם עם אדם נוסף

Home