In whatever way people surrender unto Me, I reward them accordingly. O Partha, all men follow My path.
Bhagavad Gita - Chapter 4 - Jnana Yoga - The Yoga of Knowledge
In this world, those that desire material success worship the demigods, since in human society success from such activities is quick to manifest.
I have created the four social divisions that are determined by the influence of the modes of material nature and their parallel activities. Although I have created this arrangement, know that in reality I am the non-doer and that I am unchangeable.
There is no activity that affects Me, neither do I desire the results of material activities. One who understands this is never bound by karma.
Knowing this, in ancient times, those that desired liberation also performed action. Thus, you should also adopt the path of action as they did in the past.
What is action? What is inaction? – this subject bewilders even wise men. Therefore, I shall explain to you what is action, knowing which you will become liberated and attain all auspiciousness.
One should understand what is prescribed action (karma), what is forbidden action (vikarma) and what is the renunciation of action (akarma). The path of action is most difficult to comprehend.
One who can see inaction in action and action within inaction is certainly wise amongst men. Indeed, he is a yogi and a performer of all actions.
One whose every action is free from selfish desires and who burns all his actions in the fire of knowledge is described by the learned as a wise man.
A person who has rejected the desire to enjoy the results of his actions, who does not depend upon others and who is always content, even while engaged in action, does nothing at all.