وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ يَحْيَى بْنِ سَعِيدٍ، أَنَّهُ قَالَ أُسْرِيَ بِرَسُولِ اللَّهِ صلى الله عليه وسلم فَرَأَى عِفْرِيتًا مِنَ الْجِنِّ يَطْلُبُهُ بِشُعْلَةٍ مِنْ نَارٍ كُلَّمَا الْتَفَتَ رَسُولُ اللَّهِ صلى الله عليه وسلم رَآهُ فَقَالَ لَهُ جِبْرِيلُ أَفَلاَ أُعَلِّمُكَ كَلِمَاتٍ تَقُولُهُنَّ إِذَا قُلْتَهُنَّ طَفِئَتْ شُعْلَتُهُ وَخَرَّ لِفِيهِ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ بَلَى ‏"‏ فَقَالَ جِبْرِيلُ فَقُلْ أَعُوذُ بِوَجْهِ اللَّهِ الْكَرِيمِ وَبِكَلِمَاتِ اللَّهِ التَّامَّاتِ اللاَّتِي لاَ يُجَاوِزُهُنَّ بَرٌّ وَلاَ فَاجِرٌ مِنْ شَرِّ مَا يَنْزِلُ مِنَ السَّمَاءِ وَشَرِّ مَا يَعْرُجُ فِيهَا وَشَرِّ مَا ذَرَأَ فِي الأَرْضِ وَشَرِّ مَا يَخْرُجُ مِنْهَا وَمِنْ فِتَنِ اللَّيْلِ وَالنَّهَارِ وَمِنْ طَوَارِقِ اللَّيْلِ وَالنَّهَارِ إِلاَّ طَارِقًا يَطْرُقُ بِخَيْرٍ يَا رَحْمَنُ ‏.‏

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! Translation Not Available

Book Ref: Muwatta Imam Malik Book 51 Hadith 1742
Web Ref:  Muwatta Imam Malik Book 51 Hadith 10