From the Bhagavad Gita: “He who is without attachment, free, his mind centered in wisdom, his actions, being done as a sacrifice, leave no trace behind.”

Having a lack of outcome dependence is the way to do everything. Yes, we want to do our best, but we can’t really control the result. Seems like you’ve learned that!