The oft quoted sloka from gita starts with "Karmanyeva adhikaarasthe maa phaleshu kadhachana .." It means
surrender all your actions to god
keep performing your duties but expect not the results for the same
surrender all your duties and results to god
if you surrender your karma to god the result will automatically be good.