Suhayl reported,

Abu Salih used to instruct us that whenever one of us wished to sleep, he should lie on his right side and then say, "O Allah, Lord of the heavens and Lord of the earth and Lord of the mighty Throne, our Lord and Lord of everything, Splitter of the grain and the date-stone, Revealer of the Torah, the Gospel, and the Criterion, I seek refuge in You from the evil of every creature whose forelock You hold. O Allah, You are the First, so there is nothing before You, and You are the Last, so there is nothing after You, and You are the Manifest, so there is nothing above You, and You are the Hidden, so there is nothing beyond You. Settle our debt for us and free us from poverty."He used to narrate this from Abu Hurairah from the Prophet ﷺ.

Azami 11238

Sahih

عن سهيل قال

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

الأعظمي 11238صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Morning and evening supplications
Section
Supplications and remembrances narrated when going to sleep and when waking up
Numbering
Jami al-Kamil 11238 (2nd edition)