Sahih Muslim 2711
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُعَاذٍ، حَدَّثَنَا أَبِي، حَدَّثَنَا شُعْبَةُ، عَنْ عَبْدِ اللَّهِ بْنِ أَبِي السَّفَرِ، عَنْ أَبِي بَكْرِ بْنِ أَبِي مُوسَى، عَنِ الْبَرَاءِ، أَنَّ النَّبِيَّ صلى الله عليه وسلم كَانَ إِذَا أَخَذَ مَضْجَعَهُ قَالَ اللَّهُمَّ بِاسْمِكَ أَحْيَا وَبِاسْمِكَ أَمُوتُ " . وَإِذَا اسْتَيْقَظَ قَالَ " الْحَمْدُ لِلَّهِ الَّذِي أَحْيَانَا بَعْدَ مَا أَمَاتَنَا وَإِلَيْهِ النُّشُورُ " ."
Al-Bara' reported that whenever Allah's Messenger (ﷺ) went to bed, he said:
" O Allah, it is with Your Name that I live and it is with Your Name that I die." And when he got up he used to say:" Praise is due to Allah, Who gave us life after our death (sleep) and unto You is resurrection."
Full reference and source
Sahih Muslim 2711 In-book : Book 48, Hadith 80 USC-MSA web (English) : Book 35, Hadith 6549 (deprecated)
View source on Sunnah.com (opens in a new tab)