When Khaybar was conquered, the Jews asked the Messenger of Allah ﷺ to allow them to remain there in exchange for working the land for half of whatever fruit and crops it produced. The Messenger of Allah ﷺ said, "We will let you remain there on that basis for as long as we wish."It also states, The fruit was divided into shares from half of Khaybar, and the Messenger of Allah ﷺ took the fifth.
لما افتتحت خيبر سألت يهود رسول الله ﷺ أن يقرهم فيها على أن يعملوا على نصف ما خرج منها من الثمر والزرع فقال رسول الله ﷺ: أقركم فيها على ذلك ما شئنا وفيه: وكان الثمر يقسم على السهمان من نصف خيبر، فيأخذ رسول الله ﷺ الخمس.