The Prophet Muhammad ﷺ said that every Muslim must give sadaqah. The Companions asked, 'What if he finds nothing?' He said he should work with his hands, benefit himself and give charity. If he cannot, he should help a needy person in distress; if not, he should call to what is good; and if not, he should restrain himself from harm, for that is sadaqah for him. In another hadith he counted among the daily charities: being just between two people, helping a man with his mount, a good word, every step towards prayer and removing harm from the path.
Zakat is the obligatory yearly charity (see the question on zakat). Sadaqah is voluntary, and the Quran praises those who give day and night, secretly and openly, and says that giving in secret is better and atones for some wrong deeds. It also says that whatever good a person spends is for his own soul, so giving is a benefit to the giver and not a favour done to the poor. The Prophet ﷺ also said, 'Protect yourselves from the Fire even with half a date.'
Islam also speaks of continuing charity (sadaqah jariyah). The Prophet ﷺ said that when a person dies his deeds end except for three: ongoing charity, knowledge that people benefit from, and a righteous child who prays for him. So a well, a school, a copy of a useful book or a skill taught to others can keep giving reward long after the giver is gone.