Assalam alaikoum wa Rahmatulaahi wa Barakaatuh
Several times when others praise us, we say “Thanks” when anything that is good comes from Allah alone, not from our own hands or efforts. Let’s change how we respond to praises from others by saying “Al-hamdulillah’ or the following dua (which I think is very beautiful subhan Allah!):
Allaahumma laa tu’aakhithnee bimaa yaqooloona, waghfir lee maa laa ya’lamoona [waj’alnee khayram-mimmaa yadhunnoon.
O Allah! Do not call me to account for what they say and forgive me for what they have no knowledge of [and make me better than they imagine]
Reference: Al-Bukhari, Al-’Adabul-Mufrad no. 761. See Al-Albani, Sahih Al-’Adabul-Mufrad (no. 585). The portion between brackets if from Al-Bayhaqi, Shu’ab Al-Iman 4/228, and comes another account