It was narrated from Ibn `Umar that : the Messenger of Allah (ﷺ) entered into a contract with the people of Khaibar for one half of the fruits or crops yielded.
It was narrated that Anas bin Malik said: “When the Messenger of Allah (ﷺ) gave Khaibar to its people in return of its palm trees and land.
It was narrated that Anas bin Malik said: “When the Messenger of Allah (ﷺ) conquered Khaibar, he gave it (to its people) in return for half (of its yield).”