Sahih al-Bukhari 7393
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِذَا جَاءَ أَحَدُكُمْ فِرَاشَهُ فَلْيَنْفُضْهُ بِصَنِفَةِ ثَوْبِهِ ثَلاَثَ مَرَّاتٍ، وَلْيَقُلْ بِاسْمِكَ رَبِّ وَضَعْتُ جَنْبِي وَبِكَ أَرْفَعُهُ، إِنْ أَمْسَكْتَ نَفْسِي فَاغْفِرْ لَهَا، وَإِنْ أَرْسَلْتَهَا فَاحْفَظْهَا بِمَا تَحْفَظُ بِهِ عِبَادَكَ الصَّالِحِينَ "
Narrated Abu Huraira:
The Prophet (ﷺ) said, "When anyone of you goes to bed, he should dust it off thrice with the edge of his garment, and say: Bismika Rabbi Wada`tu janbi, wa bika arfa'hu. In amsakta nafsi faghfir laha, wa in arsaltaha fahfazha bima tahfaz bihi 'ibadaka-s-salihin."
Full reference and source
Sahih al-Bukhari 7393 In-book : Book 97, Hadith 22 USC-MSA web (English) : Vol. 9, Book 93, Hadith 490 (deprecated)
View source on Sunnah.com (opens in a new tab)