Dua when entering a town or city
اللّهُـمَّ رَبَّ السَّمواتِ السَّبْعِ وَما أَظْلَلْن،...
اللّهُـمَّ رَبَّ السَّمواتِ السَّبْعِ وَما أَظْلَلْن، وَرَبَّ الأَرَضيـنَ السَّبْعِ وَما أَقْلَلْن، وَرَبَّ الشَّياطينِ وَما أَضْلَلْن، وَرَبَّ الرِّياحِ وَما ذَرَيْن، أَسْأَلُكَ خَيْرَ هذِهِ الْقَرْيَةِ وَخَيْرَ أَهْلِها وَخَيْرَ ما فيها، وَأَعوذُ بِكَ مِنْ شَرِّها وَشَرِّ أَهْلِها وَشَرِّ ما فيها
Allahumma rabbas-samawatis-sabAAi wama athlaln, warabbal-aradinas-sabAAi wama aqlaln, warabbash-shayateeni wama adlaln, warabbar-riyahi wama tharayn, as-aluka khayra hathihil-qaryati wakhayra ahliha wakhayra ma feeha, wa-aAAoothu bika min sharriha washarri ahliha washarri ma feeha
Translation
O Allah, Lord of the seven heavens and all they overshadow, Lord of the seven earths and all they carry, Lord of the devils and all they lead astray, Lord of the winds and all they scatter. I ask You for the good of this town and the good of its people and the good that is in it, and I take refuge with You from the evil of this town and the evil of its people and the evil that is in it.
When to recite
Recited when entering a new town or city.
Source / Reference
Al-Hakim 2/100