Chapter 12 · The Yoga of Devotion · Krishna said
Bhagavad Gita 12.19 — Steady in praise and blame
तुल्यनिन्दास्तुतिर्मौनी सन्तुष्टो येन केनचित्। अनिकेतः स्थिरमतिर्भक्तिमान्मे प्रियो नरः ॥
tulyanindāstutirmaunī santuṣṭo yena kenacit | aniketaḥ sthiramatirbhaktimānme priyo naraḥ ||
Meaning
who takes praise and blame alike, speaks little, is content with whatever comes, is not tied to any home, and has a steady mind full of devotion — that person is dear to me.
In today's life
Not letting praise or criticism on social media control your mood is a modern way to live this verse.