Abu Dharr reported,

I asked the Prophet ﷺ, "Which deed is best?"He answered, "Faith in Allah and struggle in His path."I asked, "Which slaves are best to free?"He replied, "Those most expensive in price and most prized by their owners."I said, "What if I cannot do that?"He said, "Then help a craftsman, or work for one who is unskilled."I said, "What if I cannot do that either?"He said, "Then spare people from your harm, for that is a charity you give to yourself."

Azami 13940

Sahih

عن أبي ذر، قال

سألت النبي ﷺ: أي العمل أفضل؟ قال: إيمان بالله، وجهاد في سبيله قلت: فأي الرقاب أفضل؟ قال: أغلاها ثمنا، وأنفسها عند أهلها. قلت: فإن لم أفعل؟ قال: تعين صانعا، أو تصنع الأخرق قال: فإن لم أفعل: تدع الناس من الشر، فإنها صدقة، تصدق بها على نفسك.

الأعظمي 13940صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Noble character
Section
Restraining oneself from evil is charity
Numbering
Jami al-Kamil 13940 (2nd edition)
Azami 13940