It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that Sayyiduna Umar (may Allah be pleased with him) acquired land at Khaybar. He said: O Messenger of Allah, I have acquired land such that nothing is dearer to me than it. What do you (peace and blessings be upon him) command me regarding it? He (peace and blessings be upon him) said: "If you wish, give its produce in charity and retain the land itself." The narrator says: Sayyiduna Umar (may Allah be pleased with him) gave it in charity on the condition that it would not be sold, nor gifted, nor inherited; it was to be given in charity to the poor, to relatives, in the path of Allah and in freeing slaves. Ibn Awn said: I think he also said: and to the guest. There is no harm on whoever manages it if he eats from it in a reasonable manner and feeds a friend, without amassing wealth from it.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الوقف / 11886