Sahih al-Bukhari 1210
Mahmud (bin Ghailan) narrated to us, (he said:) Shababah (bin Sawwar) narrated to us. (He said:) Shu'bah told us. He narrated from Muhammad bin Ziyad, Muhammad from Hazrat Abu Hurairah (ra), Hazrat Abu Hurairah (ra) from the Prophet (saw), that once he prayed (Salat) and said: “Satan came before me and attacked me violently in order to break my prayer. Allah, the Exalted, gave me power over him, and I throttled him and threw him to the ground, and I intended to tie him to a pillar so that you might see him in the morning. But I remembered this saying of Solomon (as): ‘O my Lord, … bestow on me a kingdom that will not suit anyone after me’ (Qur’an 38:36). Then Allah, the Exalted, sent him back humiliated and disgraced.”
AI-translated by Islam-Today
Book 10: What kind of actions are permissible during As-Salat