Spend (in charity), out of what We have granted you, lest death comes to any of you and (remorsefully) he says, “My Lord, if only you grant me an extension, (a little more time), I would give (my wealth in) charity; and I would be righteous!” [Quran 36:10]
Prophet (pbuh) said, The feet of a slave will not move on the Day of Judgement until he has been questioned about [four things:] one of them is "where he earned it and how he spent it"