Abu Hurairah reported,

The Messenger of Allah ﷺ said, "When one of you wishes to lie down on his bed, let him take the inner part of his lower garment and dust off his bed with it, for he does not know what may have come onto it after he left. Then let him lie down on his right side and say, 'My Lord, with You I lay down my side and with You I raise it. If You take my soul, have mercy on it, and if You send it back, then protect it with that by which You protect Your righteous servants.'"

Ibn Majah 3874

Sahih

حدثنا أبو بكر حدثنا عبد الله بن نمير عن عبيد الله عن سعيد بن أبي سعيد

عن أبي هريرة

أن رسول الله ﷺ قال إذا أراد أحدكم أن يضطجع على فراشه فلينزع داخلة إزاره ثم لينفض بها فراشه فإنه لا يدري ما خلفه عليه ثم ليضطجع على شقه الأيمن ثم ليقل رب بك وضعت جنبي وبك أرفعه فإن أمسكت نفسي فارحمها وإن أرسلتها فاحفظها بما حفظت به عبادك الصالحين

ابن ماجه 3874صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Supplication
Chapter
What to say when going to bed
Numbering
Darussalam 3874
Ibn Majah 3874