1621/1- Abu Dharr (may Allah be pleased with him) reported: “It was said to the Messenger of Allah (may Allah’s peace and blessings be upon him): ‘What do you think of a man who does a good deed and people praise him for it?’ He said: ‘That is instant glad tidings for the believer.’” [Narrated by Muslim]
1) People’s praise of someone on account of doing good deeds, when he does not seek this praise, is not included in ostentation.
2) One of the fruits of sincerity in worship is having it accepted by Allah, the Exalted, and his being well-accepted by others. Allah Almighty said: {And We left for him [a favorable mention] among later generations}.