Changing the recipients of Waqf

Dedicating a Waqf to light the Masjid and feed the fasting people, when its returns will stop after a while