Bhagavad Gita 3.20

Chapter 3: The yoga of action

कर्मणैव हि संसिद्धिमास्थिता जनकादयः ।
लोकसङ्ग्रहमेवापि सम्पश्यन्कर्तुमर्हसि ॥ २० ॥

Janaka and others indeed attained to perfection by action: then having an eye to the welfare of he world also, thou shouldst perform action.

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