Sayyiduna Ibn Umar (may Allah be pleased with them both) says that Sayyiduna Umar (may Allah be pleased with him) consulted the Messenger of Allah (peace and blessings be upon him) about giving his property at Thamgh in charity. The Prophet (peace and blessings be upon him) said: "Give its fruit in charity and retain its original property. It is not to be sold, nor inherited."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الوقف / 11892