if you give charity openly it is good but if you keep it secret and give to the needy in private that is better for you and it will atone for some of your bad deeds. god is aware of all that you do.
إن تبدوا الصدقات فنعما هي وإن تخفوها وتؤتوها الفقراء فهو خير لكم ويكفر عنكم من سيئاتكم والله بما تعملون خبير