إِن تُبْدُواْ الصَّدَقَاتِ فَنِعِمَّا هِيَ
If you disclose your Sadaqat, it is well),
meaning, "It is well if you make known the charity that you give away."
Allah's statement,
وَإِن تُخْفُوهَا وَتُوْتُوهَا الْفُقَرَاء فَهُوَ خَيْرٌ لُّكُمْ
But if you conceal them and give them to the poor, that is better for you.
this indicates that concealing charity is better than disclosing it, because it protects one from showing off and boasting. However, if there is an apparent wisdom behind disclosing the charity, such as the people imitating this righteous act, then disclosing it becomes better than concealing it.
The Messenger of Allah said,
الْجَاهِرُ بِالْقُرْانِ كَالْجَاهِرِ بِالصَّدَقَةِ وَالْمُسِرُّ بِالْقُرانِ كَالْمُسِرِّ بِالصَّدَقَة
He who utters aloud Quranic recitation is just like he who discloses charity acts. He who conceals Quranic recitation is just like he who conceals charity acts.
The Ayah indicates that it is better that acts of charity be concealed, as reiterated by the Hadith that the Two Sahihs recorded from Abu Hurayrah that the Messenger of Allah said,
سَبْعَةٌ يُظِلُّهُمُ اللهُ فِي ظِلِّهِ يَوْمَ لَا ظِلَّ إلاَّ ظِلُّهُ
إِمَامٌ عَادِلٌ
وَشَابٌّ نَشَأَ فِي عِبَادَةِ اللهِ
وَرَجُلَنِ تَحَابَّا فِي اللهِ اجْتَمَعَا عَلَيْهِ وَتَفَرَّقَا عَلَيْهِ
وَرَجُلٌ قَلْبُهُ مُعَلَّقٌ بِالْمَسْجِدِ إِذَا خَرَجَ مِنْهُ حَتَّى يَرْجِعَ إِلَيْهِ
وَرَجُلٌ ذَكَرَ اللهَ خَالِيًا فَفَاضَتْ عَيْنَاهُ
وَرَجُلٌ دَعَتْهُ امْرَأَةٌ ذَاتُ مَنْصِبٍ وَجَمَالٍ فَقَالَ إِنِّي أَخَافُ اللهَ رَبَّ الْعَالَمِينَ
وَرَجُلٌ تَصَدَّقَ بِصَدَقَةٍ فَأَخْفَاهَا حَتَّى لَا تَعْلَمَ شِمَالُهُ مَا تُنْفِقُ يَمِينُه
Allah will give shade to seven on the Day when there will be no shade but His.
They are;
a just ruler,
a youth who has been brought up in the worship of Allah,
two persons who love each other only for Allah's sake who meet and part in Allah's cause only,
a man whose heart is attached to the Masjids from the time he departs the Masjid until he returns to it,
a person who remembers Allah in seclusion and his eyes are then flooded with tears,
a man who refuses the call of a charming woman of noble birth for illicit intercourse with her and says, `I fear Allah, Lord of the worlds', and
a man who gives charitable gifts so secretly that his left hand does not know what his right hand has given.
Allah's statement,
وَيُكَفِّرُ عَنكُم مِّن سَيِّيَاتِكُمْ
(Allah) will expiate you some of your sins,
means, in return for giving away charity, especially if it was concealed. Therefore, you will gain goodness by your rank being raised, and your sins being forgiven.
Allah's statement,
وَاللّهُ بِمَا تَعْمَلُونَ خَبِيرٌ
And Allah is Well-Acquainted with what you do.
means, "No good deed that you perform escapes His knowledge, and He shall reward for it.