hadith
3794
۞
Imam al-Sadiq (AS) said, 'The deed of one who performs it in secret is recorded down as a secret action. If he admits to having performed it [when asked], the previous record is erased and it is recorded instead as a public action. If he subsequently avers it himself, however, the previous record is erased and it is recorded instead as showing off.
الإمامُ الصّادقُ (عَلَيهِ الّسَلامُ): مَن عَمِلَ حَسَنَةً سِرّاً كُتِبَت لَهُ سِرّاً، فإذا أقَرَّ بها مُحِيَتْ وكُتِبَت جَهراً، فإذا أقَرَّ بها ثانياً مُحِيَت وكُتِبَت رياءً .