Sahih Bukhari | Volume 3 | Hadith Number 522

Narrated by 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.