The Prophet ﷺ said to him: “Should I not teach you some words to say when you go to your bed, so if you died, you will die upon the Fitrah, and if you reach the morning, you will reach it in good? You say: ‘O Allah, verily, I submit myself to You, and I turn my face to You, and I entrust my affair to You, hoping in You and fearing in You. And I lay myself down depending upon 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 innī aslamtu nafsī ilaika wa wajjahtu wajhī ilaika, wa fawwaḍtu amrī ilaika, raghbatan wa rahbatan ilaika wa alja'tu ẓahrī ilaika, lā malja'a [wa lā manjā] minka illā ilaik. Āmantu bikitābikal-ladhī anzalta wa binabiyyikal-ladhī arsalt).’” Al-Bara' said: “So I said: ‘And in Your Messenger whom you have sent.’” He said: “So he ﷺ struck his hand upon my chest, then said: “And in Your Prophet whom You have sent. (Wa binabiyyikal-ladhī arsalt).”
أَنَّ النَّبِيَّ ﷺ قَالَ لَهُ أَلاَ أُعَلِّمُكَ كَلِمَاتٍ تَقُولُهَا إِذَا أَوَيْتَ إِلَى فِرَاشِكَ فَإِنْ مُتَّ مِنْ لَيْلَتِكَ مُتَّ عَلَى الْفِطْرَةِ وَإِنْ أَصْبَحْتَ أَصْبَحْتَ وَقَدْ أَصَبْتَ خَيْرًا تَقُولُ اللَّهُمَّ إِنِّي أَسْلَمْتُ نَفْسِي إِلَيْكَ وَوَجَّهْتُ وَجْهِي إِلَيْكَ وَفَوَّضْتُ أَمْرِي إِلَيْكَ رَغْبَةً وَرَهْبَةً إِلَيْكَ وَأَلْجَأْتُ ظَهْرِي إِلَيْكَ لاَ مَلْجَأَ وَلاَ مَنْجَا مِنْكَ إِلاَّ إِلَيْكَ آمَنْتُ بِكِتَابِكَ الَّذِي أَنْزَلْتَ وَبِنَبِيِّكَ الَّذِي أَرْسَلْتَ قَالَ الْبَرَاءُ فَقُلْتُ وَبِرَسُولِكَ الَّذِي أَرْسَلْتَ قَالَ فَطَعَنَ بِيَدِهِ فِي صَدْرِي ثُمَّ قَالَ وَبِنَبِيِّكَ الَّذِي أَرْسَلْتَ