Yahya related to me from Malik that Yahya ibn Said said, "Whenthe Messenger of Allah, may Allah bless him and grant him peace, wastaken on the Night Journey, he saw an evil jinn seeking him with atorch of fire. Whenever the Messenger of Allah, may Allah bless himand grant him peace, turned, he saw him. Jibril said to him, 'Shall Iteach you some words to say? When you say them, his torch will be putout and will fall from him.' The Messenger of Allah, may Allah blesshim and grant him peace, said, 'Yes, indeed.' Jibril said, 'Say, 'Iseek refuge with the Noble Face of Allah and with the complete wordsof Allah which neither the good person nor the corrupt can exceed,from the evil of what descends from the sky and the evil of whatascends in it, and from the evil of what is created in the earth andthe evil of what comes out of it, and from the trials of the night andday, and from the visitations of the night and day, except for onethat knocks with good, O Merciful!" "'Audhu bi wajhi'llahi'l-karim wa bi kalimati'llahi't-tammati. Allati la yujawazu hunna barrawa la fajir, min sharri ma yanzil min as-sama, wa sharri ma yarujufiha, wa sham ma dhara' fi'l-ard, wa sharri ma yakhruju minha, wa minfitani'l-layli wa'n-nahar, wa min tawariqi'l-layli wa'n-nahar illatariqan yatruq bikhayr ya Rahman!
USC-MSA web (English) reference: Book 51, Hadith 10
Arabic reference: Book 51, Hadith 1742