Authentic Supplication Number 199.

It is reported by way of Suhayb , that the Prophet  did not see a town which he wanted to enter except that he said upon seeing it: Allahumma rabbas-samawatis-sab`i wa ma 'athlaln, wa rabbal 'aradheenas-sab`i wama 'aqlalna, wa rabbash-shayateeni wa ma 'adhlalna, rabbar-riyahi wa ma tharayna; 'as'aluka khayra hathihi 'alqaryati, wa khayra 'ahliha, wa khayra ma feeha, wa 'a`outhu bika min sharriha, wa sharri 'ahliha, wa sharri ma feeha (218).

Footnotes.
(218) O my ilah Lord of the Seven Heavens, and that which they have shaded; Lord of the Seven Earths and that which they have carried, Lord of the shayateen [devils], and those whom they have led astray; and Lord of the winds, and that which they have lifted; I ask You the good of this town, the good of its people, and the good that is in it; and I solicit your protection from its evil, and the evil of its people and the evil that is in it.

Reporters.
Ibn Taymiya said that it was reported by An-Nisa'ee and others. Al-Albani said: "Others" like: Ibn Hibban, and Al-Hakim, who both said it was sound, and Ath-Thahabi agreed with them. Al-Albani thought the hadeeth was worty of further scrutiny because all the above mentioned narrations included 'Abi Marwan, the father of `Ata. He further said that Ath-Thahabi mentioned him in Al-Meezan saying: "An-Nisa'ee said he was unknown," and whoever claims that he was a companion has no evidence of such, except for reports that are all by way of 'Al-Waqidiy who is abolished. In spite of this, Al-Albani said, Al-Hafith Ibn Hajar said the hadeeth was comely, and said that he perhaps meant of "comely" meaning, not the hadeeth term "comely". He said: See Ibn Illan 154/5. Al-Albani included this hadeeth in The Authentic of Good Sayings as #141.