Bhagavad Gita, Chapter 12, Verse 4

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

sanniyamyendriyagrāmaṃ sarvatra samabuddhayaḥ | te prāpnuvanti māmeva sarvabhūtahite ratāḥ

Translation

Those who ever contemplate the Imperishable, the Indefinable, the Unmanifest, the Omnipresent and the Unthinkable, the Unchangeable, the Immutable, the Eternal — having restrained all the senses, always equanimous, intent on the welfare of all beings — they reach Myself.

— Alladi Mahadeva Sastri

Word meanings

saṃniyamya
having restrained
indriyagrāmam
of the senses, the aggregate
sarvatra
everywhere
samabuddhayaḥ
equal, understanding, whose, they
te
they
prāpnuvanti
obtain
mām
me
eva
even
sarvabhūtahite
(of) all, of beings, in welfare
ratāḥ
rejoicers

Śaṅkarācārya's commentary

They who contemplate the Imperishable, curbing all their senses, and always equanimous whether they come by the desirable or the undesirable, intent on the welfare of all beings — they come to Myself. It needs indeed no saying that they come to Me; for, it has been said that 'the wise man is deemed My very Self' (vii.18). Neither is it necessary to say that they are the best Yogins, seeing that they are one with the Lord Himself.