There are many doors to goodness. (Saying) 'glory to God,' 'praise be to God,' 'there is no deity but God,' enjoining good, forbidding evil, removing harm from the road, listening to the deaf (until you understand them), leading the blind, guiding one to the object of his need, hurrying with the strength of one's legs to one in sorrow who is asking for help, and supporting the weak with the strength of one's arms - all of these are (forms of) charity prescribed for you.
Muhammad