Bhagvad Gita said this quote
“ Your commitment is to action alone, not to the fruits of action. That must never be: you must not be motivated by the fruits of your actions. Yet you must not become attached to inaction. Perform your duties as a warrior and cast off attachment, Arjuna, indifferent alike whether you gain or gain not. This indifference is called yoga. Action is far lower than the rule of understanding, Arjuna. Seek refuge in wisdom. They are unworthy who are moved only by gain. Lesson Two, verses 47-49 ”