Mujahid (may Allah have mercy on him) says: "Any city that is conquered by force, if its people accept Islam before the distribution of the spoils of war, then they are free and their wealth belongs to the Muslims."
Hadith Referenceسنن سعید بن منصور / كتاب الجهاد / 3767
Hadith Takhrij«أخرجه سعيد بن منصور فى «سننه» ترقيم الدرالسلفية برقم:، 2590، وعبد الرزاق فى «مصنفه» برقم: 10136، 19405، وابن أبى شيبة فى «مصنفه» برقم: 34120»