Abu Azhar Anmari reported,

When the Messenger of Allah ﷺ would lie down at night, he would say, "In the name of Allah, I lay down my side. Allah, forgive my sin, drive away my devil, release my pledge, make my scale heavy, and place me among the highest assembly."In another narration, "among the highest company."

Azami 11245

Sahih

عن أبي الأزهر الأنماري

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

الأعظمي 11245صحيح
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 11245 (2nd edition)
Azami 11245