Sahih al-Bukhari, Book 54, Hadith 9 (Bukhari 2610)

Narrated `Abdullah bin `Umar:

Allah's Messenger (ﷺ) gave the land of Khaibar to the Jews on the condition that they would work on it and cultivate it and they would get half of its yield.