Mishkat al-Masabih 1012
وَعَنْ أَبِي الدَّرْدَاءِ قَالَ: قَامَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَسَمِعْنَاهُ يَقُولُ: «أَعُوذُ بِاللَّهِ مِنْكَ» ثُمَّ قَالَ: «أَلْعَنُكَ بِلَعْنَةِ اللَّهِ» ثَلَاثًا وَبَسَطَ يَدَهُ كَأَنَّهُ يَتَنَاوَلُ شَيْئًا فَلَمَّا فَرَغَ مِنَ الصَّلَاةِ قُلْنَا يَا رَسُولَ اللَّهِ قَدْ سَمِعْنَاكَ تَقُولُ فِي الصَّلَاةِ شَيْئًا لَمْ نَسْمَعْكَ تَقُولُهُ قَبْلَ ذَلِكَ وَرَأَيْنَاكَ بَسَطْتَ يَدَكَ قَالَ: إِنَّ عَدُوَّ اللَّهِ إِبْلِيسَ جَاءَ بِشِهَابٍ مِنْ نَارٍ لِيَجْعَلَهُ فِي وَجْهِي فَقُلْتُ أَعُوذُ بِاللَّهِ مِنْكَ ثَلَاثَ مَرَّاتٍ. ثُمَّ قُلْتُ: أَلْعَنُكَ بِلَعْنَةِ اللَّهِ التَّامَّةِ فَلَمْ يَسْتَأْخِرْ ثَلَاثَ مَرَّاتٍ ثُمَّ أَرَدْتُ أَخْذَهُ وَاللَّهِ لَوْلَا دَعْوَةُ أَخِينَا سُلَيْمَانَ لَأَصْبَحَ مُوثَقًا يَلْعَبُ بِهِ وِلْدَانُ أَهْلِ الْمَدِينَة. رَوَاهُ مُسلم
From Abu ad-Dardaʾ, who said: The Messenger of Allah ﷺ stood [in prayer] and we heard him say: "I seek refuge in Allah from you." Then he said: "I curse you with the curse of Allah," three times, and he stretched out his hand as if taking hold of something. When he had finished the prayer, we said: "O Messenger of Allah, we heard you say something in the prayer that we have not heard you say before, and we saw you stretch out your hand." He said: "The enemy of Allah, Iblis, came with a flame of fire to put it in my face. I said: 'I seek refuge in Allah from you,' three times. Then I said: 'I curse you with the complete curse of Allah,' and he did not draw back, three times. Then I wanted to seize him. By Allah, were it not for the supplication of our brother Sulayman, he would have been tied up in the morning, with the children of the people of Madinah playing with him." Reported by Muslim.