Narrated Abu Moosa: The Prophet, peace be upon him, said, “Every Muslim has to give in charity.” The people asked, “O Allah’s Prophet! If someone has nothing to give, what will he do?”
He said, “He should work with his hands and benefit himself and also give in charity (from what he earns).”
The people further asked, “If he cannot do even that?” He replied, “Then he should perform all that is good and keep away from all that is evil and this will be regarded as charitable deed.”
[2: 524- O.B. Sahih Al-Bukhari)