Abu Bakr said to the Prophet ﷺ, "Teach me something to say each morning and each evening."The Prophet ﷺ replied, "Say, 'O Allah, Knower of the unseen and the seen, Originator of the heavens and the earth, Lord and Sovereign of all things, I bear witness that there is no god but You. I seek refuge in You from the evil of my own self, and from the evil of Satan and his incitement to associate partners with You.' Say it each morning, each evening, and when you lie down to sleep."
حدثنا محمد بن جعفر حدثنا شعبة عن يعلى بن عطاء قال سمعت عمرو بن عاصم يحدث أنه
عن النبي ﷺ أن أبا بكر رضي الله عنه قال للنبي ﷺ أخبرني بشيء أقوله إذا أصبحت وإذا أمسيت قال قل اللهم عالم الغيب والشهادة فاطر السموات والأرض رب كل شيء ومليكه أشهد أن لا إله إلا أنت أعوذ بك من شر نفسي وشر الشيطان وشركه قله إذا أصبحت وإذا أمسيت وإذا أخذت مضجعك
Its isnad is sahih. Amr bin Asim bin Sufyan bin Abdullah bin Rabia Thaqafi, his reliability was already established under number 51, and it should be added here that Ibn Abu Hatim gave his biography in 3/1/250. In the three original manuscripts here the name appears as Umar instead of Amr, which is an error, we have corrected it based on manuscript S of Jami al-Masanid wal-Sunan, on the biographical references, and on the various transmissions of this hadith. The hadith appears in Jami al-Masanid 7:315–316, taken from this very place.Tayalisi related it as 2582, from Shuba, with this same isnad, and Imam Ahmad had already related it in the Musnad of Abu Bakr Siddiq under number 51 from Bahz, and under numbers 52 and 63 from Affan, both of them from Shuba, with this same isnad. Tirmidhi related it, 4:229, by way of Tayalisi from Shuba, and said, this is a hasan sahih hadith. Khatib related it in Tarikh Baghdad 11:166, 167, by way of Isa bin Affan, from his father Affan, the teacher of Ahmad, from Shuba.Abu Dawud related it in the Sunan, 5067, from Musaddad, from Hushaym, from Yaala bin Ata, with the same wording. Likewise Hakim related it in the Mustadrak 1:513, by way of Amr bin Awn Wasiti, from Hushaym, and said, this is a hadith sahih in isnad, and the two of them (Bukhari and Muslim) did not include it, and Dhahabi agreed with him. The commentator on Tirmidhi mentioned that it was also related by Nasai, Ibn Hibban, and Ibn Abu Shayba.It has also already appeared, with similar wording, as 81, from the hadith of Abu Bakr himself, but its isnad is daif because of a break in it, since it is a transmission of Mujahid from Abu Bakr, and Mujahid never met Abu Bakr. Perhaps for this reason Imam Ahmad recorded it from the transmission of Abu Hurairah, in the Musnad of Abu Bakr, allowing for the possibility that Abu Hurairah related it from Abu Bakr. But it appears that it is in fact a direct transmission of Abu Hurairah from the Messenger of Allah, and that he witnessed Abu Bakr's question, and that the Messenger of Allah ﷺ taught this supplication to some of his companions, since a similar hadith has already appeared, 6597, stating that the Messenger of Allah ﷺ taught it to Abdullah bin Amr bin As. It has also already appeared, 6851, that Abdullah bin Amr brought out a written page and said, this is what the Messenger of Allah ﷺ wrote for me, and in that page it was recorded that Abu Bakr said, "O Messenger of Allah, teach me what to say..." and so on.