It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: To dedicate something as a waqf (endowment) for a lifetime is valid, and it becomes the inheritance of that person.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 9546