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)." (ES)
English reference (ES): Vol. 3, Book 16, Hadith 2469 (ES)
Arabic reference (ES): Book 16, Hadith 2563 (ES)