Bhagavad Gita 4.22

Chapter 4: Knowledge and the offering of action

यदृच्छालाभसन्तुष्टो द्वन्द्वातीतो विमत्सरः ।
समः सिद्धावसिद्धौ च कृत्वाऽपि न निबध्यते ॥ २२ ॥

Content with whatsoever he obtaineth without effort, free from the pairs of opposites, without envy, balanced in success and failure, though acting he is not bound.

Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.