Epictetus says:
"If you ask me whether you will succeed or fail
I have no rules about it
But if you ask me How you will fare,
I can tell you,
you will fare well if you have right opinions
you will fare ill, if you have false opinions
For to every man,
the cause of his action is his opinion
And if in an instance, the opinion is bad
Effect is bound to be same as the Cause"
This has some parallel to Karma Philosophy of Hinduism that states:
An action taken with intent - is bound to cause a positive ripple in the Prakriti (Energy,Mind,Matter)
and will spread all over;
Put all your energy on the Intent and Cut the clutter of Mal-intent ;