Whenever the Prophet ﷺ lay on his bed, he used to say: "Allahumma bismika amutu wa ahya," and when he woke up he would say: "Al-hamdu lil-lahilladhi ahyana ba'da ma an atana, wa ilaihi an-nushur." (Using translation from Bukhārī 6325)
كَانَ رَسُولُ اللهِ ﷺ إِذَا أَخَذَ مَضْجَعَهُ مِنَ اللَّيْلِ قَالَ اللهُمَّ بِاسْمِكَ نَمُوتُ وَنَحْيَا وَإِذَا اسْتَيْقَظَ قَالَ الْحَمْدُ لِلَّهِ الَّذِي أَحْيَانَا بَعْدَ مَا أَمَاتَنَا وَإِلَيْهِ النُّشُورُ