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