Sahih al-Bukhari, Book 41, Hadith 12 (Bukhari 2242)

Narrated Ibn `Umar:

Allah's Messenger (ﷺ) gave the land of Khaibar to the Jew's on the condition that they work on it and cultivate it, and be given half of its yield.