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:
Seek refuge in the attitude of detachment and you will amass a wealth of awareness. Those who are motivated only by desire for the fruits of action are miserable, for they are constantly anxious about the results of what they do.