Abdullah bin Umar reported,

Umar acquired a piece of land at Khaybar, so he came to the Prophet ﷺ to consult him about it.He said, "Messenger of Allah, I have acquired a piece of land at Khaybar, and I have never obtained any property more precious to me than it. What do you command me to do with it?"The Prophet ﷺ replied, "If you wish, you may preserve its principal and give its produce as charity."So Umar gave it as charity, stipulating that its principal would not be sold, bought, inherited, or given away. Umar gave its produce as charity to the poor, to relatives, for freeing slaves, in the way of Allah, to the wayfarer, and to guests. There is no blame on whoever administers it if he eats from it in a reasonable manner or feeds a friend, without accumulating wealth from it.The narrator said, I related this to Ibn Sirin, and he said, "Without amassing property from it."

Azami 6117

Sahih

عن ابن عمر قال

أصاب عمر أرضا بخيبر، فأتى النبي ﷺ يستأمره فيها، فقال: يا رسول الله، إني أصبت أرضا بخيبر، لم أصب مالا قط هو أنفس عندي منه، فما تأمرنى به؟ قال: إن شئت حبست أصلها، وتصدقت بها. قال: فتصدق بها عمر أنه لا يباع أصلها، ولا يبتاع، ولا يورث، ولا يوهب. قال: فتصدق عمر في الفقراء، وفى القربي، وفي الرقاب، وفي سبيل الله، وابن السبيل، والضيف. لا جناح على من وليها أن يأكل منها بالمعروف، أو يطعم صديقا غير متمول فيه. قال فحدثت به ابن سيرين، فقال: غير متأثل مالا.

الأعظمي 6117صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Bequests and endowments
Section
Endowment for the rich, the poor, and the guest, and that whoever is in charge of it may eat from it in a reasonable manner according to his work
Numbering
Jami al-Kamil 6117 (2nd edition)
Azami 6117