It is reported from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) settled an arrangement with the Jews of Khaybar concerning Khaybar for half (of the produce), fixed their shares, and stipulated to them: "Whenever we wish, we will expel you."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب المساقاة / 11627