The word charity (Sadaqah) may apply to all good deeds Ma'ruf Sahih Muslim 1007 b
Translation
This hadith has been narrated on the authority of Zaid with the same chain of transmitters except with (a slight) change of words (i.e. he [the Holy Prophet]) said
Or he enjoined what is good, ... and said: He enters the evening [i.e. he walks till evening].