In one narration the words are: "Indeed, Allah Almighty has purified this town from shirk, provided the stars do not lead them astray."
Abu Ya'la recorded it, and al-Bazzar something similar; al-Tabarani recorded it in al-Mu'jam al-Awsat. Its chain contains Qays bin al-Rabi', whom Shu'bah and Sufyan al-Thawri declared thiqah (trustworthy), while others declared him weak. The remaining narrators of Abu Ya'la are thiqat (trustworthy). In the Book of Adab
this report is narrated with another chain.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الحج / 5781