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