Narrated Ibn 'Umar:
"The Prophet (ﷺ) made a deal with the people of Khaibar for half of what was produced from it, whether fruits or crops."