Karmanye vadhikaraste Ma Phaleshu Kadachana,
Ma Karmaphalaheturbhurma Te Sangostvakarmani
The worse literally translates to:
You have the right to work only but never to its fruits.
Let not the fruits of action be not your motive, nor let your attachment be to inaction.
This verse occurs in the forty-seventh verse in the second chapter of Bhagavad Gita. The first line of the verse emphasizes the actions of a man. It states that one has control only over one’s actions and not the fruits that are borne as a result of one’s actions. It is highly important for a person to detach himself from the result of their actions.
The second line, however, forbids one to refrain from performing his duties. It states that one should not identify oneself based on the outcome of the result, and also never indulge in shortcuts and never be associated with not doing your duty.
The verse highlights the nature of humans to do work expecting gains in return. The verse in return explains the importance of disinterest in the outcome and lays importance on only the actions.
It is the desire to work that will gain one fruit and not the desire to get fruits what will let one work.