حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ ، حَدَّثَنَا عَبْدُ الرَّحْمَنِ ، وَأَبُو دَاوُدَ ، قَالَا : حَدَّثَنَا شُعْبَةُ ، عَنْ عَمْرِو بْنِ مُرَّةَ ، قَالَ : سَمِعْتُ سَعْدَ بْنَ عُبَيْدَةَ يُحَدِّثُ ، عَنِ الْبَرَاءِ ، أَنَّ رَسُولَ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - أَمَرَ رَجُلًا إِذَا أَخَذَ مَضْجَعَهُ أَنْ يَقُولَ : اللَّهُمَّ أَسْلَمْتُ نَفْسِي إِلَيْكَ ، وَوَجَّهْتُ وَجْهِي إِلَيْكَ ، وَأَلْجَأْتُ ظَهْرِي إِلَيْكَ ، وَفَوَّضْتُ أَمْرِي إِلَيْكَ ، رَغْبَةً وَرَهْبَةً إِلَيْكَ ، لَا مَلْجَأَ وَلَا مَنْجَا مِنْكَ إِلَّا إِلَيْكَ ، آمَنْتُ بِكِتَابِكَ الَّذِي أَنْزَلْتَ ، وَبِرَسُولِكَ الَّذِي أَرْسَلْتَ ، فَإِنْ مَاتَ مَاتَ عَلَى الْفِطْرَةِ .
It is narrated from Sayyiduna al-Bara' (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) instructed a man that, when he lay down on his bed, he should say: 'Allahumma aslamtu nafsi ilayka, wa wajjahtu wajhi ilayka, wa alja'tu zahri ilayka, wa fawwadtu amri ilayka, raghbatan wa rahbatan ilayka, la malja'a wa la manja minka illa ilayka, amantu bi-kitabika alladhi anzalta wa bi-rasulika alladhi arsalta' (O Allah, I have surrendered my soul to You, turned my face towards You, made You the support of my back and entrusted my affair to You, out of longing for Your mercy and fear of Your punishment. There is no refuge and no escape from You except to You. I believe in Your Book which You sent down and in Your Messenger whom You sent). Then if he dies (that night), he will die upon the natural disposition of Islam (fitrah).