Sayyiduna Jabir (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "Every good deed is charity. Whatever a person spends on himself and on his family is written for him as charity, and whatever he protects his honour with is also charity. And whatever he spends, Allah Almighty gives him a better replacement for it, except what is used on buildings and on acts of disobedience." The narrator said that Muhammad bin al-Munkadir (may Allah have mercy on him) was asked: What is meant by protecting one's honour? He said: "Giving to poets and to people with sharp tongues."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الشهادات / 21132