The Book of the Prohibited actions
Riyad as-Salihin #942
كتاب الأمور المنهي عنها
وعن أبي ذر رضي الله عنه قال: قيل لرسول الله صلى الله عليه وسلم: أرأيت الرجل يعمل العمل من الخير، ويحمده الناس عليه؟ قال: «تلك عاجل بشرى المؤمن» ((رواه مسلم)).
Abu Dharr (May Allah be pleased with him) said:
The Messenger of Allah (ﷺ) was asked: “Tell us about a person who does some good deed and people praise him, will this be considered as showing off?” He replied, “This is the glad tidings which a believer receives (in this life).”.
وعن أبي ذر رضي الله عنه قال: قيل لرسول الله صلى الله عليه وسلم : أرأيت الرجل يعمل العمل من الخير، ويحمده الناس عليه؟ قال: " تلك عاجل بشرى المؤمن" ((رواه مسلم)).
The Messenger of Allah (ﷺ) was asked: "Tell us about a person who does some good deed and people praise him, will this be considered as showing off?" He replied, "This is the glad tidings which a believer receives (in this life).".
— Riyad as-Salihin, Hadith 942