Bhagavad Gita 18.7
It is not right to give up actions which are obligatory; and if they are misunderstood, it is the result of sheer ignorance.
नियतस्य तु संन्यासः कर्मणो नोपपद्यते।मोहात्तस्य परित्यागस्तामसः परिकीर्तितः॥niyatasya tu saṃnyāsaḥ karmaṇo nopapadyate|mohāttasya parityāgastāmasaḥ parikīrtitaḥ||
English translation (above): Shri Purohit Swami (1935), public domain. Sanskrit text via github.com/gita/gita (Unlicense).