Abu Musa Al-Ash'ari (May Allah be pleased with him) reported:
The Prophet (ﷺ) said, "Giving in charity is an obligation upon every Muslim". It was said (to him): "What about one who does not find (the means) to do so?" He (ﷺ) said, "Let him work with his hands, thus doing benefit to himself and give in charity." It was said to him: "What if he does not have (the means) to do so?" He (ﷺ) said, "Then let him assist the needy, the aggrieved." It was said: "What about if he cannot even do this?" He (ﷺ) said, "Then he should enjoin good." He was asked: "What if he cannot do that?" He (the Prophet (ﷺ)) said, "He should then abstain from evil, for verily, that is a charity from him".[Al-Bukhari and Muslim].
Arabic/English book reference: Book 1, Hadith 141