Start with this Du'a
When you are praised
اللَّهُمَّ لاَ تُؤَاخِذْنِي بِمَا يَقُولُونَ، وَاغْفِرْ لِي مَا لاَ يَعْلَمُونَ، [وَاجْعَلْنِي خَيْراً مِمَّا يَظُّنُّونَ]
Allahumma la tu'akhidhni bima yaqulun, waghfir li ma la ya'lamun, [waj'alni khayran mimma yadhunnun]
“O Allah, do not hold me to account for what they say, and forgive me for what they do not know [and make me better than what they think of me].”
Al-Adab al-Mufrad 761 (sahih chain per al-Albani)
These are the words the Companions would say when praised. The line in brackets comes from a separate report in al-Bayhaqi's Shu'ab al-Iman.