Sahih Muslim 835: Mosques and Places of Prayer
It is narrated from Hazrat Abu Darda’ (ra) that he related: Once the Messenger of Allah (saw) stood up (in Prayer). We heard him (saw) say: “I seek refuge with Allah from you.” Then he (saw) said three times: “I curse you with the curse of Allah.” Then he (saw) stretched out his hand as though he were taking hold of something. When he (saw) had finished the Prayer (Salat), we submitted: O Messenger of Allah (saw)! We heard you say in the Prayer what we had never heard you say before, and we saw that you stretched out your hand. He (saw) said: “The enemy of Allah, Iblis, came with a flame of fire to throw it into my face. Then I said three times: I seek refuge with Allah from you. Then I said: I curse you with the full curse of Allah. But he did not draw back any of the three times. Then I wanted to seize him. By God, had it not been for the prayer of our brother Solomon (as), he would surely be tied up, and the children of the people of Medina would be playing with him.”
AI-translated by Islam-Today