It is narrated from Sayyiduna Abu Dharr (may Allah be pleased with him) that a man asked the Messenger of Allah (peace and blessings be upon him): Which deed is best? He (peace and blessings be upon him) said: "Faith in Allah and jihad in His path." He asked: Which freeing of a slave is best? He (peace and blessings be upon him) said: "The one most valued in the eyes of its owner." He said: What do you think if I cannot find that? He (peace and blessings be upon him) said: "Help a craftsman, or an akhraq (one who is unskilled)." He said: And if I am not able to do even that? He (peace and blessings be upon him) said: "Keep people safe from your harm; this too is a charity that you give to yourself."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الوكالة / 11439