Allah the Exalted said:
٢٧٨ - باب النهي عن المن بالعطية ونحوها
Allah the Exalted said:
O you who have believed, do not invalidate your charities with reminders [of it] or injury as does one who spends his wealth [only] to be seen by the people and does not believe in Allāh and the Last Day. His example is like that of a [large] smooth stone upon which is dust and is hit by a downpour that leaves it bare. They are unable [to keep] anything of what they have earned. And Allāh does not guide the disbelieving people.
And He the Exalted said:
Those who spend their wealth in the way of Allāh and then do not follow up what they have spent with reminders [of it] or [other] injury will have their reward with their Lord, and there will be no fear concerning them, nor will they grieve.
It is related from Abū Dharr (may Allah be pleased with him) from the Prophet ﷺ that he said: "There are three to whom Allah will not speak on the Day of Resurrection, nor will He look at them, nor will He purify them, and for them is a painful punishment." He said: The Messenger of Allah ﷺ then recited it three times. Abū Dharr said: May they be ruined and lost! Who are they, O Messenger of Allah? He said: "The one who lets his garment trail in arrogance, the one who reminds others of his favours to belittle them, and the one who sells his goods by means of a false oath." Reported by Muslim. In another narration of his: "The one who lets his lower garment trail" — meaning the one who lets his lower garment and his robe hang below the ankles out of pride.