Sufyan said that this is how it was, meaning that when the Prophet ﷺ would lay his side down to sleep, he would say, "In Your name, my Lord, I lay my side down. If You take my soul, have mercy on it, and if You send it back, protect it as You protect Your righteous servants."
حدثنا سفيان حدثنا ابن عجلان وقرئ على سفيان عن سعيد
فقال سفيان هو هكذا يعني النبي ﷺ إذا وضع جنبه يقول باسمك ربي وضعت جنبي فإن أمسكت نفسي فارحمها وإن أرسلتها فاحفظها بما تحفظ به عبادك الصالحين
Its isnad is sahih. Ibn Ajlan is Muhammad. As for the statement in the middle of the isnad, "and it was read to Sufyan from Saeed" - meaning Imam Ahmad intends by this that Sufyan bin Uyayna narrated to them the beginning of the isnad, saying, "Ibn Ajlan narrated to us," and then the rest of the isnad and the text of the hadith was read to him, starting from his words "from Saeed." So the one who narrates it from Saeed bin Abu Saeed Maqburi is Ibn Ajlan, the teacher of Sufyan, and it should not be understood, as someone unfamiliar with this might mistakenly think, that it is a narration of Sufyan directly from Saeed. That never happened at all. As for Sufyan's statement, "it is like this," meaning "the Prophet ﷺ," and so on, its meaning is that the text of the hadith was read to Sufyan from Abu Hurairah, "he used to say," and Sufyan explained that this is how it appears in his narration, and that it is not to be taken at face value as meaning that Abu Hurairah himself was the one saying it, but rather that Abu Hurairah's meaning is that the Prophet ﷺ used to say, when he placed his side down, "In Your name, my Lord," and so on.The reliable narrators have differed regarding Saeed bin Abu Saeed Maqburi in this hadith, whether it is from Saeed directly from Abu Hurairah, or from Saeed from his father from Abu Hurairah. Both paths are sahih. In our view, this falls under the category of "additions within a continuous chain," for perhaps Saeed heard it himself from Abu Hurairah, while his father had also narrated it to him before that, or his father had alerted him to some part of it.Tirmidhi related it in 4:231 by this route, and his version is longer, containing additional benefits. It will come again at greater length through other routes, which we will mention later, but Tirmidhi's version is the longest and most deserving of explanation here.Tirmidhi said, Ibn Abu Umar Makki narrated to us, Sufyan narrated to us from Ibn Ajlan, from Saeed Maqburi, from Abu Hurairah, that the Messenger of Allah ﷺ said, "When one of you rises from his bed and then returns to it, let him shake it out with the edge of his garment three times, for he does not know what came onto it after he left it. Then when he lies down, let him say, 'In Your name, my Lord, I have placed my side down, and by Your power I raise it. If You hold my soul, then have mercy on it, and if You release it, then guard it as You guard Your righteous servants.' Then when he wakes up, let him say, 'Praise be to Allah, who restored to me my body, returned to me my soul, and permitted me to remember Him.'"Tirmidhi said, the hadith of Abu Hurairah is a hasan hadith. "Sinfat al-izar," with a fatha on the sad and a kasra on the nun, means the edge that is next to its border.Ibn Sunni related it in Amal al-Yawm wal-Layla, 761, through the route of Abu Bakr bin Abu Shayba, from Abu Khalid Ahmar, from Muhammad bin Ajlan, with this isnad, in abbreviated form, not mentioning its ending regarding what one says upon waking. Likewise, all the coming narrations lack this addition.Bukhari also related it, 13:320-321, through the route of Malik, from Saeed bin Abu Saeed, from Abu Hurairah, also abbreviated. He then pointed to Ibn Ajlan's narration of it from Saeed, from Abu Hurairah.It was also related from Saeed Maqburi by Abdullah bin Umar Umari and his brother Ubaydullah bin Umar. As for Abdullah, spelled with a takbir pattern and a saakin ba (the diminutive-free form), I did not find any disagreement reported from him, that it is from Saeed from Abu Hurairah. Ahmad related it, as will come at 7925, from Yazid, who is Ibn Harun, "Abdullah bin Umar informed us, from Maqburi, from Abu Hurairah." He also related it at 9587, from Yahya, who is Qattan, from Abdullah, who said, "Saeed narrated to me, from Abu Hurairah." I did not find it from Abdullah's narration other than these.As for Ubaydullah bin Umar, in the diminutive form, the reliable narrators from him differed. It was related from him by Zuhayr bin Muawiya, Anas bin Iyad, Abdah bin Sulayman, and Yahya bin Saeed bin Aban Umawi, all of whom related it from Ubaydullah bin Umar, from Saeed Maqburi, from his father, from Abu Hurairah.Ahmad related it at 9588, from Ahmad bin Abdul-Malik Harrani. Bukhari related it, 11:107-108, and Abu Dawud, 4:472 of Awn al-Mabud, both from Ahmad bin Yunus. Ibn Sunni related it in Amal al-Yawm wal-Layla, 704, through the route of Saeed bin Hafs Nufayli. All three, namely Ahmad bin Abdul-Malik, Ahmad bin Yunus, and Saeed bin Hafs, related it from Zuhayr bin Muawiya, from Ubaydullah, from Saeed Maqburi, from his father, from Abu Hurairah.Muslim related it, 2:315, from Ishaq bin Musa Ansari, from Anas bin Iyad, from Ubaydullah, with this isnad. Muslim also related it from Abu Kurayb, from Abdah bin Sulayman, from Ubaydullah, with it. Ahmad related it at 9450, from Yahya bin Saeed Umawi, from Ubaydullah, with this isnad. So these narrators related it from Ubaydullah, from Saeed, from his father, from Abu Hurairah.Yahya bin Saeed, Hammad bin Zayd, and Abdullah bin Numayr differed from them, relating it from Ubaydullah, from Saeed Maqburi, from Abu Hurairah, without mentioning "from his father" in it. Ahmad related it at 7798, from Abdul-Razzaq, from Maamar, from Zuhri, from Ubaydullah bin Umar, from Saeed Maqburi, from Abu Hurairah. Darimi likewise related it, 2:290, from Hammad bin Zayd, from Ubaydullah, with this isnad. Ibn Majah likewise related it, 3874, from Abu Bakr bin Abu Shayba, from Abdullah bin Numayr, from Ubaydullah, with it.Bukhari, in the Sahih, pointed to this disagreement regarding Ubaydullah and regarding Saeed Maqburi. He said, after his narration through the route of Zuhayr from Ubaydullah, "Abu Damra [that is, Anas bin Iyad] and Ismail bin Zakariya followed him, from Ubaydullah. And Yahya bin Saeed and Bishr said, from Ubaydullah, from Saeed, from Abu Hurairah, from the Prophet. And Malik and Ibn Ajlan related it, from Saeed, from Abu Hurairah, from the Prophet."He pointed to it again another time, after his narration through the route of Malik, saying, "Yahya and Bishr bin Mufaddal followed him, from Ubaydullah, from Saeed, from Abu Hurairah, from the Prophet ﷺ. And Zuhayr, Abu Damra, and Ismail bin Zakariya added, from Ubaydullah, from Saeed, from his father, from Abu Hurairah, from the Prophet ﷺ. And Ibn Ajlan related it from Saeed, from Abu Hurairah, from the Prophet."Hafiz elaborated extensively in Fath al-Bari, in the first location, 11:108-110, in tracing these narrations to which Bukhari pointed, and added others as well. Among what he also pointed to was that the narration of the two Hammads, meaning Hammad bin Zayd and Hammad bin Salama, is mawquf. However, the narration of Hammad bin Zayd that we mentioned from Sunan Darimi is marfu, not mawquf. So this should be noted as a correction to him. Praise be to Allah.