It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Any town you come to and stay in, you have your share in it, or it is yours; and any town (whose people) disobey Allah and His Messenger (peace and blessings be upon him), its one-fifth (khumus) is for Allah and His Messenger (peace and blessings be upon him), and the remaining four parts are yours."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قسم الفيء والغنيمة / 12831