“Your right is to karma alone, never to its fruits. Do not become the cause of the fruits of karma; let there be no attachment in you to inaction.”
Going deeper
Kṛṣṇa speaks 2.47 to Arjuna in chapter 2, and it is built as much on what not to do as on what to do. It says the right belongs to the work alone and not to its fruits. It then rules out being driven by the results of the work, and in the same line rules out attachment to inaction, so giving up the work is not offered either. The next verse, 2.48, says how the work is to be done: abandon attachment, stay established in Yoga, and view success and failure with an even mind. It calls that evenness of mind Yoga. 2.49 goes further and says that those who act with a motive for results are miserable. The word for the fruit is phala, and the fruit is what the verse says the right does not reach. See what the Gītā says about karma.