Bhagvad Gita Chapter 2 Verse 47 

Action alone is in your control
Not the results ever
Let not the fruit of action be your motive
Nor should you keep company of inaction

———

KARMANYEVA ADHIKAARASTE
Action alone is in your control

कर्मण्य/Karmanya = In the work
एव/Eva = Only
अधिकार/Adhikar = Right / Control
ते/Te = Your

MAA PHALESHU KADAACHANA
Not the results ever

मा/Ma = No/Not
फलेषु/Phaleshu = In the fruit/result (the root word is “फल”/”Phal” here, means, “fruit of work”)
कदाचन/Kadachana = Ever

MAA KARMA PHALA HETUR BHUR:
Let not your motive be the fruit of action

मा/Ma = No/Not
कर्मफल/Karmaphala = Two words, Karma+Phala, कर्म/Karma = work and फल/phala = result or fruit of the work.
हेतु /हेतु = Here it means “motive” (the word “hetu” may mean “reason” too)
भु /bhu = be

MAA TE SANGOSTVAKARMANI:
Nor should you keep company of inaction

मा/Ma = No/Not
ते/Te = Your
संग /Sang =attachment (this word may mean “companion too”, like “satsang”)
अस्तु /Astu = Let there be
अकर्मणि /Akarmani = In action

———–

Example:

The duty of a student is to study. The result of studies could be obtaining good marks. But a student must not study just for the sake of passing his exams. When he studies, he learns. Whether he passes or fails he should not be too happy or too sad about it.

If ever a student studies for the sole purpose of passing his exams, in the end he has not learned anything even if he has passed. But if he studies because he considers learning and studying as his duty, he won’t even need to be worried whether he will pass or fail. And such a student as we have always seen they are most likely to pass their exams, unless they are not able to appear for it for some reason. But still he should not be sad about it. Why? Because the most important is at least he performed his duty well.

Similarly :

When we help someone, we should not do it for the sake of something we will get in return. If we are concerned about the reward for our action, then it not a charitable action at all. And when we help someone without worrying about our own gains, this is selflessness. What is important is for us to realize that as a human being we have been able to help someone.