اَللّٰهُمَّ رَبَّ السَّمٰوٰتِ السَّبْعِ وَمَا أَظَلَّتْ، وَرَبَّ الْأَرَضِيْنَ وَ مَا أَقَلَّتْ، وَرَبَّ الشَّيَاطِيْنِ وَمَا أَضَلَّتْ، كُنْ لِّيْ جَارًا مِّنْ شَّرِّ خَلْقِكَ أَجْمَعِيْنَ أَنْ يَّفْرُ طَ عَلَيَّ أَحَدٌ مِّنْهُمْ أَوْ أَنْ يَّطْغٰى، عَزَّ جَارُكَ وَتَبَارَكَ اسْمُكَ ــ
Allaahumma Rabbas-samaawaatis-sab’i wa maa azallat, wa Rabbal ‘aradiina wa maa aqallar, wa Rabbash-shayaatiini wa maa adallat, kun lii jaaram min sharri khalqika ajma’iina an yafruta ‘alayya ahadum minhum aw an yatghaa, ‘azza jaaruka wa tabaarakas-muk. (Khalid ibn al-Walid. Majma’ az-Zawa’id #17063)
O Allah, Lord of the seven heavens and whatever comes under their shadows. Lord of the earths and whatever they bear. Lord of the devils and whatever they mislead. Be a Protector for me from the mischiefs of Your entire creation lest any of them do evil or oppress me. Strong is Your protection and blessed is Your name.
This du’aa was taught to Sayyidna Khalid ibn al-Walid (ra) by Prophet Muhammad (sallallahu alayhi wa sallem) to cure his insomnia.
(Source: Khalid Baig’s translation and commentary of du’aa #98 in the Accepted Whispers: Munajat-e-Maqbul)