It is narrated from Hazrat Abu Hurairah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: It is valid to dedicate something as a waqf (endowment) for a lifetime.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 8567