Bhagavad Gita 12.4

Chapter 12: Devotion

संनियम्येन्द्रियग्रामं सर्वत्र समबुद्धयः ।
ते प्राप्नुवन्ति मामेव सर्वभूतहिते रताः ॥ ४ ॥

Restraining and subduing the senses, regarding everything equally, in the welfare of all rejoicing, these also come unto Me.

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