Al-Adab Al-Mufrad, Book 50, Hadith 1217 (In-Book) ⓘ
Abu Hurayra reported that the Prophet, may Allah bless him and grant him peace, said, "When one of you goes to bed, he should dust his bed with the inside of his lower garment. he should say, 'In the Name of Allah.' He does not know what might have come on it after he left it. If he wants to lie down, he should lie down on his right side and say, 'Glory be to You, my Lord, I have laid down on my side by You and I raise it up by You. If you take my soul, then forgive it. If you release it, then guard over it as You guard over Your righteous slaves.'"
حَدَّثَنَا إِبْرَاهِيمُ بْنُ الْمُنْذِرِ، قَالَ: حَدَّثَنَا أَنَسُ بْنُ عِيَاضٍ، عَنْ عُبَيْدِ اللهِ قَالَ: حَدَّثَنِي سَعِيدٌ الْمَقْبُرِيُّ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ النَّبِيُّ صلى الله عليه وسلم: إِذَا أَوَى أَحَدُكُمْ إِلَى فِرَاشِهِ فَلْيَأْخُذْ دَاخِلَةَ إِزَارِهِ، فَلْيَنْفُضْ بِهَا فِرَاشَهُ وَلْيُسَمِّ اللَّهَ، فَإِنَّهُ لاَ يَعْلَمُ مَا خَلَّفَهُ بَعْدَهُ عَلَى فِرَاشِهِ، فَإِذَا أَرَادَ أَنْ يَضْطَجِعَ فَلْيَضْطَجِعْ عَلَى شِقِّهِ الأَيْمَنِ وَلْيَقُلْ: سُبْحَانَكَ رَبِّي، بِكَ وَضَعْتُ جَنْبِي، وَبِكَ أَرْفَعُهُ، إِنْ أَمْسَكْتَ نَفْسِي فَاغْفِرْ لَهَا، وَإِنْ أَرْسَلْتَهَا فَاحْفَظْهَا بِمَا تَحْفَظُ بِهِ عِبَادَكَ الصَّالِحِينَ.
also referenced under: Hadith 1217 (Reference) & Book 50, Hadith 1217 (English)