Many people want to leave something behind them so people remember them but it is more important to leave something so that Allāh ﷻ remembers you. These are good deeds that continue to be written for you after you die. If your intention is to give until Qiyāmah, Allāh ﷻ will not disappoint you.