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