Bhagavad Gita 18.46

Chapter 18: Freedom through renunciation

यतः प्रवृत्तिर्भूतानां येन सर्वमिदं ततम् ।
स्वकर्मणा तमभ्यर्च्य सिद्धिं विन्दति मानवः ॥ ४६ ॥

He from whom is the emanation of beings, by Whom all This is pervaded, by worshipping Him in his own duty a man winneth perfection.

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