The Messenger of Allah ﷺ handed over Khaybar to the Jews on the condition that they would work and cultivate it, and they would receive half of whatever it produced.
حدثنا محمد بن مقاتل أخبرنا عبد الله أخبرنا عبيد الله عن نافع
أن رسول الله ﷺ أعطى خيبر اليهود على أن يعملوها ويزرعوها ولهم شطر ما خرج منها