Abdullah bin Umar reported,

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.

Azami 9046

Sahih

عن ابن عمر قال

لما افتتحت خيبر سألت يهود رسول الله ﷺ أن يقرهم فيها على أن يعملوا على نصف ما خرج منها من الثمر والزرع فقال رسول الله ﷺ: أقركم فيها على ذلك ما شئنا وفيه: وكان الثمر يقسم على السهمان من نصف خيبر، فيأخذ رسول الله ﷺ الخمس.

الأعظمي 9046صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Expedition of Khaybar
Section
Prophet's ﷺ dealings with the people of Khaybar
Numbering
Jami al-Kamil 9046 (2nd edition)
Azami 9046