The Prophet (ﷺ) made a deal with the people of Khaibar that they would have half the fruits and vegetation of the land they cultivated.
Sahih al-Bukhari Book 41, Hadith 10