“When you go to your bed, perform the Wudu’ as you would perform for Salat. Then lie on your right side, then say: ‘O Allah, I submit my face to You, and I entrust my affair to You, and I lay myself down relying upon You, hoping in You and fearing 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 (Allāhumma aslamtu wajhī ilaika wa fawwaḍtu amrī ilaika, wa alja’tu ẓahrī ilaika, raghbatan wa rahbatan ilaika, lā malja’a wa lā manjā minka illā ilaika, āmantu bikitābikalladhī anzalta wa bi-nabiyykalladhī arsalt).’ And if you die that night, you shall die upon the Fitrah” - Al-Bara’ said: I repeated it to retain it in memory, “So I said: ‘I believe in Your Messenger whom You have sent.’” He said: “So he ﷺ struck with his hand upon my chest, then said: ‘And in Your Prophet whom You have sent.’”
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ إِذَا أَخَذْتَ مَضْجَعَكَ فَتَوَضَّأْ وُضُوءَكَ لِلصَّلاَةِ ثُمَّ اضْطَجِعْ عَلَى شِقِّكَ الأَيْمَنِ ثُمَّ قُلِ اللَّهُمَّ أَسْلَمْتُ وَجْهِي إِلَيْكَ وَفَوَّضْتُ أَمْرِي إِلَيْكَ وَأَلْجَأْتُ ظَهْرِي إِلَيْكَ رَهْبَةً وَرَغْبَةً إِلَيْكَ لاَ مَلْجَأَ وَلاَ مَنْجَا مِنْكَ إِلاَّ إِلَيْكَ آمَنْتُ بِكِتَابِكَ الَّذِي أَنْزَلْتَ وَبِنَبِيِّكَ الَّذِي أَرْسَلْتَ فَإِنْ مُتَّ فِي لَيْلَتِكَ مُتَّ عَلَى الْفِطْرَةِ قَالَ فَرَدَّدْتُهُنَّ لأَسْتَذْكِرَهُ فَقُلْتُ آمَنْتُ بِرَسُولِكَ الَّذِي أَرْسَلْتَ فَقَالَ قُلْ آمَنْتُ بِنَبِيِّكَ الَّذِي أَرْسَلْتَ قَالَ وَهَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ وَقَدْ رُوِيَ مِنْ غَيْرِ وَجْهٍ عَنِ الْبَرَاءِ وَلاَ نَعْلَمُ فِي شَيْءٍ مِنَ الرِّوَايَاتِ ذُكِرَ الْوُضُوءُ إِلاَّ فِي هَذَا الْحَدِيثِ