Abu Dharr reported: When the Prophet, peace and blessings be upon him, would go to sleep at night, he would say, “In Your name we die and we live.” When the Prophet woke up, he would say, “All praise is due to Allah who has given us life after our death and unto Him is the Resurrection.”
Source: Ṣaḥīḥ al-Bukhārī 7394
Grade: Sahih (authentic) according to Al-Bukhari
عَنْ أَبِي ذَرٍّ قَالَ كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا أَخَذَ مَضْجَعَهُ مِنْ اللَّيْلِ قَالَ بِاسْمِكَ نَمُوتُ وَنَحْيَا فَإِذَا اسْتَيْقَظَ قَالَ الْحَمْدُ لِلَّهِ الَّذِي أَحْيَانَا بَعْدَ مَا أَمَاتَنَا وَإِلَيْهِ النُّشُورُ
7394 صحيح البخاري كتاب التوحيد باب السؤال بأسماء الله تعالى والاستعاذة بها