It was narrated from Ibn ‘Umar that the Prophet صلی اللہ علیہ وآلہ وسلم gave the datepalms of Khaibar and their land to the Jews of Khaibar, on condition that they would take care of them at their expense, and the Messenger of Allah صلی اللہ علیہ وآلہ وسلم would have half of whatever they produced.
(Sahih)