Read the following verse from Bhagavadgītā carefully.
Karmanyevādhikāraste mā phaleṣu kadācana;
Mā karmaphalaheturbhūrmā te saṅgo’stvakarmaṇi.
[Your right is for action alone, never for the results. Do not become the agent of the results of action. May you not have any inclination for inaction.] (Bhagavadgītā 2:47)
This above quoted verse is a standard reference to: