"The Prophet (ﷺ) made a deal with the people of Khaibar for half of what was produced from it, whether fruits or crops."
Jami` at-Tirmidhi Book 15, Hadith 64