It is narrated from Ibn Umar (may Allah be pleased with them both) that Umar (may Allah be pleased with him) became the owner of one hundred shares from Khaybar which he had purchased, and he came to the Messenger of Allah (peace and blessings be upon him) and said: "O Messenger of Allah! I have acquired such wealth that I have never acquired better wealth than this before, and I intend to seek nearness to Allah through it." Upon this, the Prophet (peace and blessings be upon him) said: "Keep the ownership of the garden, and dedicate its fruits in the way of Allah."
Hadith Referenceمسند الإمام الشافعي / كتاب الوقف والعمرى والرقبى / 1061
Hadith Takhrijأخرجه ابن ماجة، الصدقات، باب من وقف (2397) والنسائي، الأحباس، باب حبس المشاع (3633، 3634، 3635) وصححه ابن خزيمة (2486) وابن حبان۔
It is narrated from Ibn Umar (may Allah be pleased with them both) that Umar (may Allah be pleased with him) said: O Messenger of Allah! I have acquired such wealth from Khaybar that I have never obtained any wealth better or more valuable to me than this. So the Messenger of Allah (peace and blessings be upon him) said: "If you wish, keep the ownership of the garden and dedicate its produce in the way of Allah." So Umar ibn Al-Khattab (may Allah be pleased with him) gave it in charity, then Ibn Umar (may Allah be pleased with them both) described the manner of his charity.
Hadith Referenceمسند الإمام الشافعي / كتاب الوقف والعمرى والرقبى / 1062
Hadith Takhrijصحيح من غيـر هـذا الـطـريـق اخرجه البخارى، الشروط ، باب الشروط في الوقف (2737) ومسلم، الوصية، باب الوقف (1632)۔
It is narrated from Ibn Umar (may Allah be pleased with them both) that he said: Umar (may Allah be pleased with him) came to the Prophet (ﷺ) and said: O Messenger of Allah! I have acquired such wealth that I have never acquired better wealth than this before, and I intend to seek nearness to Allah through it. So the Messenger of Allah (ﷺ) said: "Keep its original property with yourself, and give its fruits in charity in the way of Allah."
Hadith Referenceمسند الإمام الشافعي / كتاب الوقف والعمرى والرقبى / 1063