يا ايها الذين امنوا لا تبطلوا صدقتكم بألمن والأذى كالذي ينفق ما له رىآء الناس و لا يؤمن بالله واليوم الأخر فمشله كمثل صفوان عليه تراب فأصابه وابل فتركه صلدا لا يقدرون على شىء مما كسبوا والله لا يهدى القوم الكافرين
O you who have believed, do not invalidate your charities with reminders or injury as does one who spends his wealth [only] to be seen by the people and doesn’t believe in Allah 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 bear. They are unable [to keep] anything of what they have earned. And Allah doesn’t guide the disbelieving people.
Surah Al Baqarah(2:264)