…Therefore, when you do a charitable deed, do not sound a trumpet before you as the hypocrites do in the synagogues and in the streets, that they may have glory from men. Assuredly, I say to you, they have their reward…
[Matthew 6:1-4]
It’s true Jesus was talking about giving to the poor in this passage. He said we shouldn’t give alms for the show of it; otherwise, we have no reward in heaven for our good works. However, I think it is sound to stretch this encompass all other forms of giving to God and man.

This doesn’t mean we can’t ever talk about our giving. It depends on the context. We can talk about it to teach and encourage others to do likewise. We can also share our testimonies on giving and receiving to praise His Holy Name. I don’t think God is against that. What God is against is boasting about our giving; and saying so because we want applause from men.
The poor widow gave two mites and it was recorded. Jesus gave to the poor and it was recorded. David and Solomon gave and those were recorded.
I’ve read and heard Dr Mike Murdock teach about his $58, $100, $1000 seed etc. and how God has blessed him accordingly. Today, the man gives money to his ministry more than any other person does. The way God keeps blessing him doesn’t suggest God is displeased because he hasn’t giving in secret.
Some will only give when others will know that they’ve given so much for this or that project in the church. It’s the same craving that drives some to go and pick envelops for fat pledges they know fully well they have no intention to redeem. They just want to be seen. God have mercy!
Those who give for the show of it offer sacrifices of fools. There’ll be no reward for them from Our Father who sees in secret and rewards openly.
May we obtain more grace to be wise in the Name of Jesus. Amen