From Sahih Muslim (Hadith 3962):
Ibn Umar (Allah be pleased with them) reported that Allah's Messenger (ﷺ) contracted with the people of Khaibar the (trees) on the condition that he would have half the produce in fruits and harvest
Reference: Muslim 3962