Bhagavad Gita · 3.25
सक्ताः कर्मण्यविद्वांसो यथा कुर्वन्ति भारत।कुर्याद्विद्वांस्तथासक्तश्चिकीर्षुर्लोकसंग्रहम्॥
saktāḥ karmaṇy avidvāṁso yathā kurvanti bhārata kuryād vidvāṁs tathāsaktaśh chikīrṣhur loka-saṅgraham
As the ignorant act with attachment to their work, O Bharata, so should the wise act without attachment, desiring the welfare of the world.
— Bhagavad Gita 3.25
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)