Hazrat Shaikh Moulana Muhammad Zakariyya (rahmatullahi ‘alaih) writes:

Wealth is beneficial as well as harmful; it is both a cure as well as a poison. Rasulullah (sallallahu ‘alaihi wasallam) said, “For every ummah (people), there has been a trial and a temptation; the temptation of my Ummah lies in wealth”. Hence it is necessary to guard oneself against this temptation and its harmful effects. If someone possesses a poisonous snake and he makes an antidote, it will be useful both for himself and for other people. Otherwise, its poison will prove fatal for himself and will also harm others. It was in view of these harmful effects of wealth that Rasulullah (sallallahu ‘alaihi wasallam) once remarked, “This wealth is pleasant and attractive to see and inviting to the heart; it is beneficial for him who obtains it by rightful means (in the manner prescribed by sharee‘ah) and spends it properly; but he who obtains it by unlawful means is like one suffering from a disease in which one goes on eating without being satisfied.” (Fazaail-e-Sadaqaat [urdu], Part 2 –pg.366)

Source: Ihyaauddeen.co.za