Veda Vyasa, in the Mahabharata, said that setting your heart upon your work and being intuitive enough to be able to follow it through will give you greater benefit, rather than focusing on the reward.
It is often the joy and love of the journey that brings you success than the end destination itself. Just before the Kurukshetra war, Lord Krishna asked Arjuna to concentrate on his duty instead of worrying about the outcome of the war for this reason.
To learn more about the Mahabharata visit the virtual art exhibition here: https://www.art-ma.com/mahabharatavr/