Money makes the mere go but it should be earned only and solely for that end. In other words, you should earn money for the sake of fulfilling the needs and necessities of life. It should not be for the sake of money itself. When you get money for its sake, your desire for wealth goes on increasing. There is no full stop and the desire becomes almost insatiable.On the other hand, if you spend the extra wealth on charity,
it becomes a great virtue and a source of Divine pleasure. And if you please Allah, He will bestow His provision more and more on you. The wealth may even be immeasurable and without account.
The verse 212 of Surah Al-Baqarah from the Holy Quran says the same thing:“And Allah bestows His provision without measure (without account) on whom He wills.”
When you spend money in the way of Allah, it is just as you give Him debt. And He returns the debt many times more than the actual amount or wealth you spend.