You are only entitled to the action, never to its fruits.

Vyasa, as published in Bhagavad Gita, chapter 2, verse 47