It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that Sayyiduna Umar (may Allah be pleased with him) said: O Messenger of Allah (peace and blessings be upon him)! I have received property the like of which I have never received; I own one hundred shares at Khaybar, and I intend to seek nearness to Allah through it. He (peace and blessings be upon him) said: "Retain the original property and dedicate the fruit in the path of Allah."
Abu Yahya says: One of Sayyiduna al-Hasan and Sayyiduna al-Husayn (may Allah be pleased with them both) endowed portions of his houses, and the scholars have permitted that; and Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) endowed the shares that Sayyidah Hafsah (may Allah be pleased with her) had gifted to him.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الوقف / 11905