[Machine] Umar ibn al-Khattab was reciting the Quran while leading the people in prayer at the mosque of the Prophet Muhammad ﷺ in the house of Abu Jahl. Ka'b al-Ahbar said, "By the One who split the sea for Moses, Suhaib informed me that whenever the Prophet ﷺ saw a village that he intended to enter, he would say, 'O Allah, Lord of the seven heavens and whatever they overshadow, Lord of the seven earths and whatever they contain, Lord of the devils and whatever they mislead, Lord of the winds and whatever they scatter. Indeed, we ask You for the goodness of this village and the goodness of its people, and we seek refuge in You from its evil, the evil of its people, and the evil within it.' Ka'b swore by the One who split the sea for Moses that these were the supplications of David ﷺ when he saw the enemy."
يَسْمَعُ قِرَاءَةَ عُمَرَ بْنِ الْخَطَّابِ وَهُوَ يَؤُمُّ النَّاسَ فِي مَسْجِدِ رَسُولِ اللهِ ﷺ مِنْ دَارِ أَبِي جَهْمٍ وَقَالَ كَعْبُ الْأَحْبَارِ وَالَّذِي فَلَقَ الْبَحْرَ لِمُوسَى لَإِنَّ صُهَيْبًا حَدَّثَنِي أَنَّ مُحَمَّدًا رَسُولُ اللهِ ﷺ لَمْ يَكُنْ يَرَى قَرْيَةً يُرِيدُ دُخُولَهَا إِلَّا قَالَ حِينَ يَرَاهَا «اللهُمَّ رَبَّ السَّمَوَاتِ السَّبْعِ وَمَا أَظْلَلْنَ وَرَبَّ الْأَرْضِينَ السَّبْعِ وَمَا أَقْلَلْنَ وَرَبَّ الشَّيَاطِينِ وَمَا أَضْلَلْنَ وَرَبَّ الرِّيَاحِ وَمَا ذَرَيْنَ فَإِنَّا نَسْأَلُكَ خَيْرَ هَذِهِ الْقَرْيَةِ وَخَيْرِ أَهْلِهَا وَنَعُوذُ بِكَ مِنْ شَرِّهَا وَشَرِّ أَهْلِهَا وَشَرِّ مَا فِيهَا» وَحَلَفَ كَعْبٌ بِالَّذِي فَلَقَ الْبَحْرَ لِمُوسَى لَأَنَّهَا كَانَتْ دَعَوَاتِ دَاوُدَ ﷺ حِينَ يَرَى الْعَدُوَّ