Even sleep has earned a respectable place within halachic literature. The Rambam writes that one should get at least eight hours of sleep each night. So important is sleeping that it is sometimes permissible to violate Shabbat (such as putting out a light for a sick person or the like) in order to get a good night’s sleep. One is advised to make an effort to recite the Ma’ariv prayer as early as possible each evening lest one fall asleep from the day’s exhaustion before praying. It is even suggested that one recite Ma’ariv before eating dinner, as meals often cause sleepiness. There is an opinion that one who has gone to bed for the evening but realizes before falling asleep that he forgot to recite Ma’ariv is not required to get out of bed and get dressed in order to do so.
According to most authorities, one is required to recite at least the first paragraph of Shema and the Hamapil blessing before going to sleep each night. One who is unable to fall asleep at night should recite the Shema over and over again until sleep overtakes him. Alternatively, one should think about the waves of the ocean or the future resurrection of the dead. Music is also said to have a relaxing effect and is helpful for falling asleep. Rebbe Nachman teaches that one should expect difficulty in falling asleep Saturday nights.
According to some authorities, one should recite the bedtime Shema while lying in bed. Others argue that praying while lying in bed is disrespectful and that the bedtime Shema should be recited before actually getting into bed. One may recite the bedtime Shema as soon as one starts to get ready for bed – one need not wait until the last waking moment. One should never sleep in a synagogue (the sanctuary), on a floor, in a cemetery, or under the shadow of the moon. We are also taught that a man should never sleep alone in a house lest he fall prey to the angel Lilith.
One is advised to position one’s bed so that it faces north to south rather than east to west. One should preferably sleep on one’s left side and not flat on one’s back. There is a widespread hesitation to sleep with one’s feet facing the door of the room. The reason for this is based on the traditional practice of removing the dead from a room feet first. This idea is found in the teachings of feng shui, as well:
Whatever you do, make sure your feet don’t point out the door while in bed. In traditional Chinese culture, this is called the “Death Position” because the deceased are carried out feet first. Practitioners believe sleeping this way can drain your life force. If you can’t avoid it, use a footboard or a substantial trunk or other piece of furniture at the foot of your bed [to act as a buffer].
While those who are superstitiously inclined may prefer to avoid sleeping with their feet facing the door, there does not seem to be any halachic basis for this. Those whose bedrooms are already positioned in this manner should pay no attention to any such superstitious concerns.
It is also considered very inauspicious to sleep with shoes on. Indeed, sleeping while wearing shoes is said to be “a taste of death” and liable to cause memory loss. Similarly, one should not use one’s clothes as a pillow, as doing so is also said to cause memory loss. One should not retire for the night while still wearing one’s daytime clothing. Proper sleep is important for maintaining health and helps the body fight off illness.
Although one is not subject to reward or punishment for any actions “performed” while sleeping, one is often responsible for any damages that one causes while sleeping. Staying awake all night long is unhealthy and unadvised and spending all day sleeping is unbecoming and leads to laziness. Similarly, one should limit daytime naps as they only serve to curb one’s productivity, though one is completely entitled to take a nap when needed. Napping on Shabbat is encouraged and taking a nap on Fridays is also considered praiseworthy if one’s intention is to be fully awake and refreshed for the arrival of Shabbat. One should perform netilat yadayim after taking a nap, though the accompanying blessing is not recited.
 Rambam, Hilchot Deot 4:4; Chatam Sofer, Derashot 2:402. See also Shla, Chullin 84a.
 Shabbat 2:5.
 Berachot 4b.
 Bnei Banim 2:19.
 Berachot 60b; OC 239.
 Yerushalmi Berachot 1:1.
 Ta’amei Haminhagim, p. 575.
 Sefer Hamiddot, s.v. “Sheina.”
 Eruvin 104a.
 Likutei Moharan 1:117.
 Magen Avraham 239:5; Mishna Berura 239:6.
 Mishna Berura 239:2; Kaf Hachaim, OC 239:11.
 Mishna Berura 239:3.
 Kitzur Shulchan Aruch 13:4.
 Berachot 62b; Gittin 70a; Aruch Hashulchan, YD 16:15.
 Chagiga 3b.
 Pesachim 111a.
 Shabbat 151b. See Sha’ar Hatziun 239:17.
 Berachot 5b; OC 3:6; 240:17. For more on the position of the bed and the direction in which one should sleep see my book Halacha Bilvad.
 Kitzur Shulchan Aruch 71:5.
 Berachot 13b; Rambam, Hilchot Deot 4:5; Mishna Berura 339:6.
 “Top 10 Tips to Feng Shui Your Bedroom,” http://www.chinatownconnection.com/feng-shui-bedroom.htm.
 Shuva Yisrael 1:3.
 Yoma 78b; Ben Ish Chai, Pinchas 16; Kaf Hachaim, YD 116:211.
 Horayot 13b; Kitzur Shulchan Aruch 71:5.
 Kitzur Shulchan Aruch 71:5.
 Berachot 57b; Yalkut Shimoni, Bereishit 1:6; Bereishit Rabba 14.
 She’eilat Ya’avetz 2:97.
 Bava Kama 26a; CM 421:3.
 Avot 3:4.
 Avot 3:11; Mishlei 20:13.
 Sukka 26b; OC 231:1.
 Mishna Berura 4:36; Aruch Hashulchan 4:17.
 Tur, OC 280; Magen Avraham 4:15; Mishna Berura 4:36.
 Sefer Or Haner, cited in Yitzhak Buxbaum, Jewish Spiritual Practices (New York: Jason Aronson, 1994).
 Rema, OC 4:15; Mishna Berura 4:34.