C48 · Sahih Muslim - The Book Pertaining to the Remembrance of Allah, Supplication, Repentance and Seeking Forgiveness, Hadith 2711 (Grade: Sahih - Authentic)
عَنِ الْبَرَاءِ، أَنَّ النَّبِيَّ صلى الله عليه وسلم كَانَ إِذَا أَخَذَ مَضْجَعَهُ قَالَ " اللَّهُمَّ بِاسْمِكَ أَحْيَا وَبِاسْمِكَ أَمُوتُ " . وَإِذَا اسْتَيْقَظَ قَالَ " الْحَمْدُ لِلَّهِ الَّذِي أَحْيَانَا بَعْدَ مَا أَمَاتَنَا وَإِلَيْهِ النُّشُورُ "
Al-Bara' reported that whenever Allah's Messenger (ﷺ) went to bed, he said: " O Allah, it is with Thine Name that I live and it is with Thine 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 Thee is resurrection."
View in verification table: