Sahih Bukhari – Hadith No : 1210

Narrated Abu Huraira: The Prophet once offered the prayer and said, “Satan came in front of me and tried to interrupt my prayer, but Allah gave me an upper hand on him and I choked him. No doubt, I thought of tying him to one of the pillars of the mosque till you get up in the morning and see him. Then I remembered the statement of Prophet Solomon, ‘My Lord ! Bestow on me a kingdom such as shall not belong to any other after me.’ Then Allah made him (Satan) return with his head down (humiliated).”

Hadith In Arabic Text :

حدثنا محمود، حدثنا شبابة، حدثنا شعبة، عن محمد بن زياد، عن أبي هريرة رضى الله عنه عن النبي صلى الله عليه وسلم أنه صلى صلاة قال ‏”‏ إن الشيطان عرض لي، فشد على ليقطع الصلاة على، فأمكنني الله منه، فذعته، ولقد هممت أن أوثقه إلى سارية حتى تصبحوا فتنظروا إليه فذكرت قول سليمان عليه السلام رب هب لي ملكا لا ينبغي لأحد من بعدي‏.‏ فرده الله خاسيا ‏”‏‏.‏ ثم قال النضر بن شميل فذعته بالذال أى خنقته وفدعته من قول الله ‏{‏يوم يدعون‏}‏ أى يدفعون والصواب، فدعته إلا أنه كذا قال بتشديد العين والتاء‏.‏

Chapter : Actions while Praying – كتاب العمل فى الصلاة