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.
English reference: Vol. 3, Book 16, Hadith 2467
Arabic reference: Book 16, Hadith 2561
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.