Ayesha reported,

The Prophet ﷺ was praying when Satan came to him, seized him, threw him down, and began to strangle him. The Messenger of Allah ﷺ said, "I felt the coldness of his tongue on my hand. Were it not for the supplication of my brother Sulayman عليه السلام, he would have been left bound until morning for the people to see."

Azami 2656

Sahih

عن عائشة

أن النبي ﷺ كان يصلي، كان يصلي، فأتاه الشيطان فأخذه، فصرعه فخنقه، قال رسول الله ﷺ: حتى وجدت برد لسانه على يدي، ولولا دعوة أخي سليمان عليه السلام لأصبح موثقا حتى يراه الناس.

الأعظمي 2656صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Minor actions do not invalidate the prayer
Section
Repelling the jinn and strangling it during prayer
Numbering
Jami al-Kamil 2656 (2nd edition)
Azami 2656