Abu Tiyah says that I asked Sayyiduna Abdur Rahman bin Khunbash, who was extremely elderly, "Did you meet the Prophet (peace be upon him)?" He said, "Yes." I asked, "What incident occurred with the Prophet (peace be upon him) on the Night of the Jinn?" He replied, "That night, jinn descended from various valleys and ravines to the Prophet (peace be upon him), and among them was a devil who had a flame of fire in his hand, intending to burn the face of the Prophet (peace be upon him). Meanwhile, Sayyiduna Jibreel descended from the sky to the Prophet (peace be upon him) and said, 'O Muhammad, say.' The Prophet (peace be upon him) asked, 'What should I say?' He said, 'Say: I seek refuge in the perfect and complete words of Allah from the evil of all that He has created, brought into existence, and made; from the evil of all that descends from the sky and ascends to it; from the evil of the trials of night and day; and from the evil of every visitor at night except one who comes with goodness. O Most Merciful.' He said: As soon as these words were recited, their fire was extinguished and Allah defeated them."
Hadith Referenceمسند احمد / مسند المكيين / 15460
Hadith Gradingحکم دارالسلام:إسناده ضعيف، تفرد به جعفر بن سليمان، وهو ممن لا يحتمل تفرده، وسيار بن حاتم له مناكير، وقوله: "قلت لعبدالرحمن بن خنبش" وهم من سيار بن حاتم، صوابه: سال رجل عبدالرحمن
Abu Tiyah says that a man asked Sayyiduna Abdur Rahman bin Khunbash, "What did the Prophet (ﷺ) do when the devils plotted against him?" He replied, "The devils came to the Prophet (ﷺ) from the valleys and descended upon him from the mountains, and among them was a devil who had a flame of fire with which he intended to burn the Prophet (ﷺ). At this the Prophet (ﷺ) was alarmed (Ja'far said: I think he said that he began to step back). Meanwhile, Sayyiduna Jibreel (peace be upon him) came and said, 'O Muhammad, say.' The Prophet (ﷺ) asked, 'What should I say?' He said, 'Say: I seek refuge in the perfect words of Allah which no righteous or wicked person can go beyond, from the evil of all that He has created, spread and brought into existence; from the evil of all that descends from the sky and all that ascends to it; from the evil of all that He has spread in the earth and all that comes out of it; from the evil of the trials of night and day; and from the evil of every visitor at night except one who comes with good, O Most Merciful.' (As soon as these words were recited) the fire of the devils was extinguished and Allah, the Mighty and Majestic, defeated them."