According to this saying, all immorality and wickedness is caused by money. This saying is a misquotation, and the original version ("the love of money is the root of all evil") implies that all immorality and wickedness is caused by people loving money, not by money itself.
When you have money, you don't know if people are friendly with you because they like you, or because they like your money. The structure of this saying is difficult. In normal English it would be something like: "Rich people do not know who their friends are."
When we die we leave everything on earth. We don't take anything with us. Even the richest people cannot take their money with them after death. This proverb reminds us that some material or worldly things are not really so valuable as we may think.
These are English sayings and proverbs about money, wealth and riches.