Chapter 12 · The Yoga of Devotion · Krishna said
Bhagavad Gita 12.17 — Beyond good and bad outcomes
यो न हृष्यति न द्वेष्टि न शोचति न काङ्क्षति। शुभाशुभपरित्यागी भक्तिमान्यः स मे प्रियः ॥
yo na hṛṣyati na dveṣṭi na śocati na kāṅkṣati | śubhāśubhaparityāgī bhaktimānyaḥ sa me priyaḥ ||
Meaning
One who neither rejoices nor hates, neither grieves nor craves, and has let go of both good and bad results — that devoted person is dear to me.