Jami` at-Tirmidhi, Book 15, Hadith 64 (Tirmidhi 1397)

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."