Bhagavad Gita 18.3

त्याज्यं दोषवदित्येके कर्म प्राहुर्मनिषेण: |
यज्ञदानतप:कर्म न त्यागमिति चापरे

Translation

Some learned people declare that all kinds of actions should be given up as evil, while others maintain that acts of sacrifice, charity, and penance should never be abandoned.