Hadith 970
Sayyid Khalid bin Walid (may Allah be pleased with him) says: I was afflicted with insomnia, so the Messenger of Allah (peace and blessings be upon him) said to me: "Shall I not teach you some words which, if you say them, you will fall asleep? Say: «اللّٰهُمَّ رَبَّ السَّمَاوَاتِ السَّبْعِ وَمَا أَظَلَّتْ وَرَبَّ الْأَرَضِينَ السَّبْعِ وَمَا أَقَلَّتْ وَرَبَّ الشَّيَاطِينَ وَمَا أَضَلَّتْ كُنْ لِي جَارًا مِنْ شَرِّ خَلْقِكَ جَمِيعًا أَنْ يُفْرِطَ عَلَيَّ أَحَدٌ مِنْهُمْ أَوْ أَنْ يَطْغَىٰ عَزَّ جَارُكَ وَلَا إِلٰهَ غَيْرُكَ» 'O Allah! Lord of the seven heavens and all that they overshadow, Lord of the seven earths and all that they carry, and Lord of the devils and all whom they have led astray! Be my protector against the evil of all Your creation, so that none of them may oppress or transgress against me. Your protection is mighty, and there is no deity worthy of worship except You.'"