It is narrated from a Companion of the Messenger of Allah (peace and blessings be upon him) (the grandfather of Ibn Abi Marwan) that they set out with the Messenger of Allah (peace and blessings be upon him) towards Khaybar, until, when he (peace and blessings be upon him) came near Khaybar, the Messenger of Allah (peace and blessings be upon him) and all the Muslims stopped there. Then he (peace and blessings be upon him) made this supplication: 'Allahumma rabba al-samawati al-sab'i wa ma azlalna, wa rabba al-aradina wa ma aqlalna, wa rabba al-shayatini wa ma adlalna, as'aluka khayra hadhihi al-qaryati wa khayra ahliha wa khayra ma fiha, wa na'udhu bika min sharri hadhihi al-qaryati wa sharri ahliha wa sharri ma fiha' (O Allah, Lord of the seven heavens and all that they shade, Lord of the earths and all that they carry, and Lord of the devils and those who are led astray through them! I ask You for the good of this town, the good of its inhabitants and the good that is in it, and I seek refuge with You from the evil of this town, the evil of its inhabitants and the evil that is in it). Then he (peace and blessings be upon him) said: "Advance with the name of Allah." So the Messenger of Allah (peace and blessings be upon him) entered Khaybar. Likewise, it is narrated from Sayyiduna Suhayb (may Allah be pleased with him) that whenever the Messenger of Allah (peace and blessings be upon him) saw a town he intended to enter, he would make this supplication as soon as he saw it: 'Allahumma rabba al-samawati al-sab'i wa ma azlalna, wa rabba al-aradina al-sab'i wa ma aqlalna, wa rabba al-shayatini wa ma adlalna, wa rabba al-riyahi wa ma dharayna, as'aluka khayra hadhihi al-qaryati wa khayra ahliha, wa na'udhu bika min sharriha wa sharri ahliha wa sharri ma fiha' (O Allah, Lord of the seven heavens and all that they shade, Lord of the seven earths and all that they carry, Lord of the devils and those whom they lead astray, and Lord of the winds and all that they scatter; I ask You for the good of this town and the good of its inhabitants, and I seek refuge with You from its evil, the evil of its inhabitants and the evil that is in it). Ka'b said this, swearing by the One who split the sea for Sayyiduna Musa (peace be upon him), that Sayyiduna Suhayb (may Allah be pleased with him) had narrated this hadith to him. Imam al-Nasa'i recorded this hadith in his book al-Sunan al-Kubra.
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف؛ لضعف سفيان بن وكيع وإبراهيم بن إسماعيل
Hadith Takhrij«سفيان بن وكيع: كان صدوقا إلا أنه ابتلي بوراقه فأدخل عليه ما ليس من حديثه فسقط حديثه (التقريب، من الحفظ)؛ إبراهيم بن إسماعيل (لعله ابن مجمع) ضعيف (من الحفظ)؛ وأبو مروان والد عطاء مختلف في صحبته» «(6243/1) أخرجه مجمع الزوائد ومنبع الفوائد برقم: 17117، وأخرجه شرح مشكل الآثار برقم: 2528» «(6243/3) أخرجه مسند البزار برقم: 2093، وأخرجه المستدرك على الصحيحين برقم: 1676، وأخرجه المعجم الكبير للطبراني برقم: 7299، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 17118، وأخرجه صحيح ابن حبان برقم: 2709، وأخرجه الأحاديث المختارة برقم: 69، وأخرجه السنن الكبرى للنسائي برقم: 8880، 10601، 10602، 10603، 10604، وأخرجه شرح مشكل الآثار برقم: 2529»