Bhagavad Gita · 18.3
त्याज्यं दोषवदित्येके कर्म प्राहुर्मनीषिणः।यज्ञदानतपःकर्म न त्याज्यमिति चापरे॥
tyājyaṁ doṣhavad ity eke karma prāhur manīṣhiṇaḥ yajña-dāna-tapaḥ-karma na tyājyam iti chāpare
Some learned people say that all action should be given up as evil, while others say that acts of sacrifice, charity, and austerity should not be abandoned.
— Bhagavad Gita 18.3
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)