Bhagavad Gita 18.45

स्वे स्वे कर्मण्यभिरतः संसिद्धिं लभते नरः।स्वकर्मनिरतः सिद्धिं यथा विन्दति तच्छृणु ॥१८.४५॥

sve sve karmaṇyabhirataḥ saṃsiddhiṃ labhate naraḥsvakarmanirataḥ siddhiṃ yathā vindati tacchṛṇu

Each person devoted to their own duty attains perfection. How they attain perfection while being engaged in their own duty, hear now.

गीता