When the Messenger of Allah ﷺ appointed me as governor over Taif, something began to interfere with me during my prayer until I no longer knew what I was praying. When I noticed this, I traveled to the Messenger of Allah ﷺ.He asked, "Is that Ibn Abu al-As?"I replied, "Yes, Messenger of Allah."He asked, "What brings you here?"I said, "Messenger of Allah, something interferes with me during my prayers until I no longer know what I am praying."He said, "That is Satan. Come closer."So I drew near to him and sat on the balls of my feet. He struck my chest with his hand, spat into my mouth, and said, "Get out, enemy of Allah." He did this three times, then said, "Return to your work."Uthman said, "By my life, I do not think it has troubled me since."
حدثنا محمد بن بشار حدثنا محمد بن عبد الله الأنصاري حدثني عيينة بن عبد الرحمن حدثني أبي
لما استعملني رسول الله ﷺ على الطائف جعل يعرض لي شيء في صلاتي حتى ما أدري ما أصلي فلما رأيت ذلك رحلت إلى رسول الله ﷺ فقال ابن أبي العاص قلت نعم يا رسول الله قال ما جاء بك قلت يا رسول الله عرض لي شيء في صلواتي حتى ما أدري ما أصلي قال ذاك الشيطان ادنه فدنوت منه فجلست على صدور قدمي قال فضرب صدري بيده وتفل في فمي وقال اخرج عدو الله ففعل ذلك ثلاث مرات ثم قال الحق بعملك قال فقال عثمان فلعمري ما أحسبه خالطني بعد
Its isnad is sahih, and Busiri graded it sahih. It has a corroborating narration in Muslim, hadith no. 2203, hadith no. 68.