Here is a quote from Shantideva, writing that our motivation, whether good or bad, determines the fruit of our actions:
Whatever joy there is in this world
All comes from desiring others to be happy
And whatever suffering there is in this world,
All comes from desiring myself to be happy.
And this, from the Dalai Lama,: “There is no need for temples; no need for complicate philosophy. Our own brain, our own heart is our temple. My philosophy is kindness.”