Giving charity is—or at least, its purpose—a way for those whom Allah has blessed with wealth to share with their neighbors in need. But Muslims are not just ordered to give charity to the poor from their wealth; they are also ordered to give it in a certain way.

We often hear that, when giving charity, we should do so in a way that our left hand doesn’t know what our right hand has spent. So does that mean we are only ever supposed to give charity in secret?

Actually, both ways are permissible. Islam supports giving charity in private as the best form of giving, but there’s something to be said about giving it publicly (as long as one is aware of their intentions and behavior).

Giving Charity in Secret

The Prophet Mohammad ﷺ said that one of the seven groups of people that will be granted shade on the Day of Judgment includes the one who gives charity but hides it, so that even his left hand does not know what his right hand has spent.

Islam places a great emphasis and reward on giving charity in secret. It preserves the dignity of those who receive the charity, and also prevents the giver from being boastful or seeking praise.

Islam teaches Muslims that giving in secret is far superior to giving publicly, and that drawing attention to one’s charitable actions is a highly undesirable quality. The Prophet ﷺ said: “Allah loves the God-fearing rich man [who gives much in charity but still] remains obscure and uncelebrated.” (Muslim)

Giving charity in secret is best when giving charity that is voluntary.

Giving Charity Publicly

If a person fears that he will be showing off, or tempted to show off, when giving charity, or that he may cause some humiliation or embarrassment to the poor person, then it is better for him to give it in secret.

However, giving charity publicly—as long as the giver knows his intentions are not to show off or be boastful, and can donate charity in a modest way—sets a good example to the community. It encourages others to follow in the giver’s footsteps and give charity, too.

Giving charity publicly is best when giving obligatory charity. Scholars agree that doing obligatory acts in Islam is best done openly and announced, so as to encourage others to fulfil their duties as well.