סימן עא סעיף ה
יַפְשִׁיט מַלְבּוּשָׁיו מֵעָלָיו וְלֹא יִישַׁן בְּמַלְבּוּשָׁיו. כְּשֶׁחוֹלֵץ מִנְעָלָיו וּפושֵׁט בְּגָדָיו, חוֹלֵץ וּפושֵׁט שֶׁל שְׂמֹאל תְּחִלָּה. וְלֹא יַנִּיחַ מַלְבּוּשָׁיו תַּחַת מְרָאשׁוֹתָיו, כִּי מְשַׁכֵּחַ לִמּוּדוֹ, וְצָרִיךְ לִזָּהֵר מְאֹד לְהַרְגִּיל אֶת עַצְמוֹ לִשְׁכַּב עַל צִדּוֹ. וְאִסּוּר גָּדוֹל לִשְׁכַּב פְּרַקְדָּן, דְּהַיְנוּ גַּבּוֹ לְמַטָּה וּפָנָיו לְמַעְלָה, אוֹ בְּהִפּוּךְ פָּנָיו לְמַטָּה וְגַבּוֹ לְמַעְלָה, אֶלָּא דַּוְקָא עַל צִדּוֹ. וְטוֹב שֶׁיִשְׁכַּב בִּתְחִלַּת שְׁנָתוֹ עַל צַד שְׂמֹאל, וּבַסוֹף עַל צַד יָמִין, וְהוּא טוֹב לִבְרִיאוּת הַגּוּף, כִּי הַכָּבֵד מֻנָּח בְּצַד יָמִין, וְהָאִצְטוֹמְכָא בְּצַד שְׂמֹאל. וְכַאֲשֶׁר יַטֶּה עַל צַד שְׂמֹאל, אֲזַי יְהֵא הַכָּבֵד עַל הָאִיצְטוֹמְכָא וִיחַמְּמָהּ בְּחֻמּוֹ, וּבָזֶה יִתְעַכֵּל הַמָּזוֹן מְהֵרָה. וְאַחֲרֵי שֶׁנִתְעַכֵּל הַמָּזוֹן רָאוּי לוֹ שֶׁיַּטֶּה עַל צַד יָמִין, כְּדֵי שֶׁתָּנוּחַ הָאִיצְטוֹמְכָא וְתֵרֵד פְּסוֹלֶת הַמַּאֲכָל. וְלֹא יִתְהַפֵּךְ מִצַד אֶל צַד פְּעָמִים הַרְבֵּה (אוֹרַח חַיִּים סִימָן ב', רמב"ם פרק ד' מהלכות דעות, מהריעב"ץ אה"ע סִימָן כג, שבילי אמונה). (הִלְכוֹת צְנִיעוּת תְּבֹאַרְנָה אִם יִרְצֶה הַשֵּׁם בְּסִימָן ק"נ).
You should undress yourself and not sleep in [day] clothes. When removing your shoes or clothes, you should remove those on the left first. You should not place your clothes under your head, because it causes one to forget his learning. You should take great care to get yourself into the habit of lying on your side. It is strictly forbidden to lie in a supine position, that is your back downward and your front [facing] upward, or conversely—your front downward and your back upward, but only on your side. It is advisable to begin sleeping on the left side and finish on the right side; this is beneficial for one's health because the liver is located on the right side and the stomach on the left, and when leaning on the left the liver rests on the stomach and warms it with its heat thereby facilitating the speedy digestion of food. After the food has been digested it is advisable to turn on the right side so that the stomach rests and cause the waste to pass, and you should not turn from side to side too often [during the night] (The laws of modesty will be explained, if God so wills, in Chapter 150).
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)