The Rambam · Sefer Ahavah
הלכות תפילה וברכת כהנים ז׳Prayer and the Priestly Blessing 7
Chapter 7 of 15 in Prayer and the Priestly Blessing — 18 halachot
Halacha 1א׳
כשתקנו חכמים דברי תפלות אלו תקנו ברכות אחרות לברך אותן בכל יום ואלו הן:כשיכנס אדם למטתו לישן בלילה מברך ברוך אתה יי' אלהינו מלך העולם המפיל חבלי שינה על עיני והמשקיע שינת תרדמה והמאיר לאישון בת עין יהי רצון מלפניך יי' אלהי שתצילני מיצר רע ומפגע רע ואל יבהלוני חלומות רעים ולא הרהורים רעים ותהא מטתי שלימה לפניך ותעמידני ממנה לחיים ולשלום והאירה עיני פן אישן המות ברוך אתה יי' המאיר לעולם כולו בכבודו.
When the sages established these words of prayer, they also established other blessings to recite every day and these are them: When a person gets into his bed to sleep at night he should recite the blessing: Blessed are You, Lord, our God, King of the Universe, Who brings down the cords of sleep upon my eyes, and who lowers the sleep of slumber and who awakens the pupil of the eye. May it be the will in front of You, Lord, my God, that You will save me from the evil impulse and from an evil encounter, and that evil dreams not bewilder me, and [also] not evil musings; and that my bed will be perfect in front of You; and that You will raise me up from it for life and peace; and that You will light up my eyes, lest [I sleep] the sleep of death. Blessed are You Lord, Who lights up the entire world with His glory.
Halacha 2ב׳
וקורא פרשה ראשונה מקריאת שמע וישן ואפילו אשתו ישנה עמו (קורא פסוק ראשון או פסוקי רחמים ואחר כך יישן) ואם אנסתו שינה קורא אפילו פסוק ראשון או פסוקי רחמים ואח"כ יישן.
And [then] he recites the first section of the Reading of the Shema and he sleeps, and even if his wife is with him (he reads the first verse or verses of mercy and afterwards sleeps). And if sleep overcomes him, he [can] even read [only] the first verse or verses of mercy and afterwards sleep.
Halacha 3ג׳
בשעה שייקץ בסוף שנתו מברך והוא על מטתו כך:אלהי נשמה שנתת בי טהורה אתה בראתה ואתה יצרתה ואתה נפחתה בי ואתה משמרה בקרבי ואתה עתיד ליטלה ממני ואתה עתיד להחזירה בי לעתיד לבא כל זמן שהנשמה תלויה בקרבי מודה אני לפניך יי' אלהי רבון כל המעשים ברוך אתה יי' המחזיר נשמות לפגרים מתים.
At the time when he arises at the end of his sleep, he recites the blessing - and he is still in bed - like this: My God, the soul that You have given into me is pure. You created it, Your formed it and You blew it into me, and You preserve it inside me; and in the future, You will take it from me, and in the future, You will return it to me - in the future to come. All the time that the soul is hovering within me, I thank in front of You, Lord, my God, Master of all works. Blessed are You, Lord, Who returns souls to dead corpses.
Mishneh Torah, Hebrew Wikisource edition, via Sefaria — CC BY-SA
English: Sefaria Community Translation — CC0