I came to Abdullah bin Amr bin As and said to him, "Tell us something you heard from the Messenger of Allah ﷺ."He handed me a written page and said, "This is what the Messenger of Allah ﷺ wrote for me."I looked at it, and in it was the following. Abu Bakr al-Siddiq said, "Messenger of Allah, teach me what to say each morning and each evening."He replied, "Abu Bakr, say, 'O Allah, Originator of the heavens and the earth, Knower of the unseen and the seen, there is no god but You, Lord of everything and its Sovereign. I seek refuge in You from the evil of my own self, and from the evil of Satan and his polytheism, and from committing wrong against myself or bringing it upon a Muslim.'"
أتيت عبد الله بن عمرو بن العاص فقلت له: حدثنا مما سمعت من رسول الله ﷺ، فألقى إلي صحيفة فقال: هذا ما كتب لي رسول الله ﷺ قال: فنظرت فيها فإذا فيها: إن أبا بكر الصديق قال: يا رسول الله علمني ما أقول إذا أصبحت وإذا أمسيت، فقال: يا أبا بكر قل: اللهم فاطر السموات والأرض، عالم الغيب والشهادة، لا إله إلا أنت رب كل شيء ومليكه، أعوذ بك من شر نفسي، ومن شر الشيطان وشركه، وأن أقترف على نفسي سوءا أو أجره إلى مسلم.
Tirmidhi (3529), Ahmad (6851), and Bukhari in Adab al-Mufrad (1204) all narrated it through Ismail bin Ayyash, from Muhammad bin Ziyad Alhani, from Abu Rashid Hubrani, who mentioned it. Tirmidhi said, "This is a hasan gharib hadith from this angle."I say, it is as he said, for its chain contains Ismail bin Ayyash, who is truthful in his narration from the people of Sham, and this is one of those, since Muhammad bin Ziyad was from Homs and is trustworthy.Similar in meaning is what Abu Dawud (5083) narrated from Muhammad bin Awf, who said, Muhammad bin Ismail told us, saying, my father told me, Ibn Awf said, and I saw it in the original manuscript of Ismail, he said, Damdam told me, from Shurayh, from Abu Malik, who said, they said, "Messenger of Allah, teach us a phrase to say when we wake, when we retire in the evening, and when we lie down." So he instructed them to say, "O Allah, Originator of the heavens and the earth, Knower of the unseen and the seen, You are the Lord of all things, and the angels bear witness that there is no god but You, we seek refuge in You from the evil of our own souls and from the evil of the accursed Satan and his partnership, and from committing wrong against ourselves or bringing it upon a Muslim."Its chain is disconnected, Shurayh is Ibn Ubayd, who did not hear from Abu Malik Ashari, as Abu Hatim said. And Muhammad bin Ismail bin Ayyash has been criticized, and they faulted him for narrating from his father without having actually heard from him, though Ibn Awf mentioned that he saw this hadith in the original manuscript of Ismail bin Ayyash.It has already been noted that more than one narrator related it from Ismail bin Ayyash, from Muhammad bin Ziyad Alhani, from Abu Rashid Hubrani, from Abdullah bin Amr.