This is succinctly mentioned in Vedic Philosophy -
Do your actions as a offering, be detached from results of your action, live a life of purpose. The battlefield discourse of Bhagavad Gita by Stephen Mitchell is a good intro.
Stoicists will find many good nuggets in the Yoga of Action discourse.