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.