[Machine] The Messenger of Allah ﷺ said, "When any of you lies down at night, he should put his right hand under his cheek and then say: 'In the name of Allah, O Allah, I surrender myself to You, I submit my back to You, I entrust my affairs to You, and I turn my face towards You out of fear and hope of You. There is no refuge nor escape from You except to You. I believe in Your Book which You have revealed, and in Your Prophet whom You have sent.' Whoever says this and then dies, he will die upon the Fitrah (the natural uncorrupted state).
قَالَ رَسُولُ اللهِ ﷺ إِذَا أَخَذَ أَحَدُكُمْ مَضْجَعَهُ مِنَ اللَّيْلِ فَلْيَتَوَسَّدْ يَمِينَهُ ثُمَّ لِيَقُلْ بِاسْمِ اللهِ اللهُمَّ أَسْلَمْتُ نَفْسِي إِلَيْكَ وَأَلْجَأْتُ ظَهْرِي إِلَيْكَ وَفَوَّضْتُ أَمْرِي إِلَيْكَ وَوَجَّهْتُ وَجْهِي إِلَيْكَ رَهْبَةً مِنْكَ وَرَغْبَةً إِلَيْكَ لَا مَلْجَأَ وَلَا مَنْجَى مِنْكَ إِلَّا إِلَيْكَ آمَنْتُ بِكِتَابِكَ الْمَنْزِلِ وَبِنَبِيِّكَ الْمُرْسَلِ مَنْ قَالَهَا ثُمَّ مَاتَ مَاتَ عَلَى الْفِطْرَةِ