Abdullah bin Umar reported,

Umar bin Khattab acquired some land in Khaybar, then came to the Prophet ﷺ to seek his advice about it. He said, "Messenger of Allah, I have acquired land in Khaybar, and I have never obtained any property more precious to me than this. What do you advise me to do with it?"The Prophet ﷺ replied, "If you wish, you may preserve its principal and give its yield as charity."So Umar gave it as a charitable endowment, stipulating that it was not to be sold, gifted, or inherited. He devoted its proceeds to the poor, to relatives, to freeing slaves, to the cause of Allah, to travelers, and to guests. There is no blame on whoever administers it if he eats from it in a reasonable manner and feeds others, without amassing wealth from it.The narrator said, I related this to Ibn Sirin, and he said, "Without accumulating property from it."

Bukhari 2737

Sahih

حدثنا قتيبة بن سعيد حدثنا محمد بن عبد الله الأنصاري حدثنا ابن عون قال أنبأني نافع

عن ابن عمر رضي الله عنهما

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

البخاري 2737صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Conditions
Chapter
Conditions in charitable endowment
Numbering
Darussalam 2737
Bukhari 2737