Bhagavad Gita, Chapter 2, Verse 47
Your right is to work only, but never to the fruits thereof. Do not be the producer of the fruits of your actions; neither let your attachment be towards inaction.
Your job is the effort. The outcome was never yours to hold onto.
One of the most quoted lines in the whole text, for good reason. You own the work completely and the result not at all, and that is no excuse to do nothing either.