Answer:
It is narrated from Sayyiduna Abu al-Darda’ (may Allah be pleased with him), who said that the Messenger of Allah ﷺ stood up for prayer, and we heard him say:
«أعوذ بالله منك ثم قال: ألعنك بلعنة الله ثلاثا وبسط يده كانه يتناول شيئا فلما فرغ من الصلاة، قلنا: يا رسول الله قد سمعناك تقول فى الصلاة شيئا لم نسمعك تقوله قبل ذلك و رأيناك بسطت يدك؟ قال: إن عدو الله إبليس جاء بشهاب من نار ليجعله فى وجهي فقلت : أعوذ بالله منك ثلاث مرات، ثم قلت: العنك بلعنة الله التامة. فلم يستأخر ثلاث مرات ثم أردت أخده، والله لولا دعوة أخينا سليمان لأصبح موثقا يلعب به ولدان أهل المدينة»
“«أعوذ بالله منك» (I seek refuge in Allah from you). Then the Messenger of Allah ﷺ said: «العنك بلعنة الله» (I curse you with the curse of Allah). This happened three times, and he stretched out his hand as if grasping something. When the Messenger of Allah ﷺ finished the prayer, we said: O Messenger of Allah! We heard you say something in the prayer that we have never heard you say until today. And we saw that you stretched out your hand. The Messenger of Allah ﷺ said: Indeed, the enemy of Allah, Iblis, came with a flame of fire to put it on my face. So I said «أعوذ بالله منك» three times, then I said: «العنك بلعنة الله», but he did not draw back after three times. Then I intended to seize him. By Allah! Were it not for the supplication of my brother Sulayman, he would certainly have been bound, and the children of the people of Madinah would be playing with him.”