Invocation for entering a town or city
Allaahumma Rabbas-samaawaatis-sab’i wa maa ‘adhlalna, wa Rabbal-‘aradheenas-sab’i wa maa ‘aqlalna, wa Rabbash-shayaateeni wa maa ‘adhlalna, wa Rabbar-riyaahi wa maa tharayna. ‘As’aluka khayra haathihil-qaryati wa khayra ‘ahlihaa, wa khayra maafeehaa, wa ‘a’oothu bika min sharrihaa, wa sharri ‘ahlihaa, wa shard maa feehaa.
O Allah, Lord of the seven heavens and all they overshadow, Lord of the seven worlds and all they uphold, Lord of the devils and all they lead astray, Lord of the winds and all they scatter. I ask You for the goodness of this town and for the goodness of its people, and for the goodness it contains. I seek refuge in You from its evil, from the evil of its people and from the evil it contains.
Reference: Al-Hakim who graded it authentic and Ath-Tfaahabi agreed 2/100, and Ibn As-Sunni (no. 524). Al-Hafidh graded it good in his checking of Al-‘Athkdr 5/154. Ibn Baz said in Tuhfatul-‘Akhydr p. 37, that An-Nasa’i recorded it with a good chain of narration.