Just as a solid rock is not shaken by the storm, even so the wise are not affected by praise or blame.
– DhammaPada Verse 81
Picture Credit: The Girl on the Rock in Sorrento, Filippo Palizzi, 1871
Related Teachings:
A teaching on the vicissitudes of life ↗️ - The eight worldly conditions of Gain and loss, fame and disgrace, blame and praise, and pleasure and pain are impermanent, transient, and perishable.
The Five Unobtainable States (AN 5.48) - A wise person reflects on their nature, so they do not suffer when struck by loss.
Also see 2:49 of the Bhagavad Gita: