Sahih al-Bukhari 6312
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
حَدَّثَنَا قَبِيصَةُ، حَدَّثَنَا سُفْيَانُ، عَنْ عَبْدِ الْمَلِكِ، عَنْ رِبْعِيِّ بْنِ حِرَاشٍ، عَنْ حُذَيْفَةَ، قَالَ كَانَ النَّبِيُّ صلى الله عليه وسلم إِذَا أَوَى إِلَى فِرَاشِهِ قَالَ بِاسْمِكَ أَمُوتُ وَأَحْيَا ". وَإِذَا قَامَ قَالَ " الْحَمْدُ لِلَّهِ الَّذِي أَحْيَانَا بَعْدَ مَا أَمَاتَنَا وَإِلَيْهِ النُّشُورُ "."
Narrated Hudhaifa:
When the Prophet (ﷺ) went to bed, he would say: "Bismika amutu wa ahya." and when he got up he would say:" Al-hamdu li l-lahil-ladhi ahyana ba'da ma amatana wa ilaihin-nushur."
Full reference and source
Sahih al-Bukhari 6312 In-book : Book 80, Hadith 9 USC-MSA web (English) : Vol. 8, Book 75, Hadith 324 (deprecated)
View source on Sunnah.com (opens in a new tab)