Abu Hurairah reported,

The Prophet ﷺ used to say when he retired to his bed, "Allah, Lord of the heavens and the earth, Lord of everything, Splitter of the seed and the date-stone, Revealer of the Torah, the Gospel, and the great Quran, I seek refuge in You from the evil of every creature whose forelock You hold. You are the First, so there is nothing before You. You are the Last, so there is nothing after You. You are the Manifest, so there is nothing above You. You are the Hidden, so there is nothing beyond You. Settle my debt for me and free me from poverty."

Ibn Majah 3873

Sahih

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

عن أبي هريرة

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

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