Bhagavad Gita said this quote

You have a right to perform your prescribed duties, but you are not entitled to the fruits of your actions.