إِن تُبْدُوا۟ ٱلصَّدَقَـٰتِ فَنِعِمَّا هِىَ ۖ وَإِن تُخْفُوهَا وَتُؤْتُوهَا ٱلْفُقَرَآءَ فَهُوَ خَيْرٌ لَّكُمْ ۚ وَيُكَفِّرُ عَنكُم مِّن سَيِّـَٔاتِكُمْ ۗ وَٱللَّهُ بِمَا تَعْمَلُونَ خَبِيرٌ Qur’an Al-Baqara (2:271)In tubdoo a l ss adaq a ti faniAAimm a hiya wain tukhfooh a watutooh a alfuqar a a fahuwa khayrun lakum wayukaffiru AAankum min sayyi a tikum wa A ll a hu bim a taAAmaloona khabeer un
Donations for a public cause may be done openly to encourage others to donate, whereas it is recommended to give charity to the poor secretly.
It is better to seek no publicity in charity. But if it is known there is no harm. If it is for public purposes, it must necessarily be known, and a pedantic show of concealment may itself be a fault. The harm of publicity lies in motives of ostentation. We can better reach the really deserving poor by quietly seeking for them. The spiritual benefit enures to our own souls, provided our motives are pure, and we are really seeking the good pleasure of God.