Sahih al-Bukhari 7394
Sahih al-Bukhari · Book 97: Oneness, Uniqueness of Allah (Tawheed) · Asking Allah with His Names and seeking refuge with them
Narrated Hudhaifah:
حَدَّثَنَا مُسْلِمٌ ، حَدَّثَنَا شُعْبَةُ ، عَنْ عَبْدِ الْمَلِكِ ، عَنْ رِبْعِيٍّ ، عَنْ حُذَيْفَةَ ، قَالَ كَانَ النَّبِيُّ صلى الله عليه وسلم إِذَا أَوَى إِلَى فِرَاشِهِ قَالَ " اللَّهُمَّ بِاسْمِكَ أَحْيَا وَأَمُوتُ ". وَإِذَا أَصْبَحَ قَالَ " الْحَمْدُ لِلَّهِ الَّذِي أَحْيَانَا بَعْدَ مَا أَمَاتَنَا وَإِلَيْهِ النُّشُورُ " .
When the Prophet (ﷺ) went to bed, he used to say, "Allahumma bismika ahya wa amut." And when he woke up in the mornings he used to say, "Al-hamdu li l-lahi al-ladhi ahyana ba'da ma amatana wa ilaihi-nnushur."