In fact we say that an intention is good, that is, right in itself, but that an action does not bear any good in itself but proceeds from a good intention. Whence when the same thing is done by the same man at different times, by the diversity of his intention, however, his action is now said to be good, now bad.
"Peter Abelard's Ethics". Book by Peter Abelard, 1971.