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."