Sahih al-Bukhari, Book 41, Hadith 10 (Bukhari 2240)

Narrated Ibn `Umar:

The Prophet (ﷺ) made a deal with the people of Khaibar that they would have half the fruits and vegetation of the land they cultivated.