Qatadah said: When Abdullah bin Mas'ud (may Allah be pleased with him) intended to enter a town, he would recite this supplication: "O Allah, Lord of the heavens and whatever they shade, Lord of the devils and whomever they lead astray, and Lord of the winds and whatever they scatter, I ask You for the good of this town and the good of what is in it, and I seek refuge in You from its evil and the evil of what is in it."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 8835