That saying is derived from Sacred Scripture, 1 Tim 6:10
For the love of money is the root of all evils; it is through this craving that some have wandered away from the faith and pierced their hearts with many pangs.
(Revised Standard Version Catholic Edition).