And spend [in the way of Allāh] from what We have provided you before death approaches one of you and he says, “My Lord, if only You would delay me for a brief term so I would give charity and be among the righteous.”
But never will Allāh delay a soul when its time has come. And Allāh is Acquainted with what you do. [Al Munafiqoon:10-11]
At the end of the surah we are told one way to keep our hearts from being sealed and being of the hypocrites. Spending wealth is something hypocrites find hard to do so we should spend generously because as Allah (swt) mentions our death could be at any point and wanting to give everything at that time is not possible.
Death is approaching us and each day it draws closer but we are averse from it. We should spend while we have the chance before even that is taken away.