An action is essentially good if the motive of the agent be good, regardless of the consequences.
Immanuel KantWhen I could have used a wife, I could not support one; and when I could support one, I no longer needed any
Immanuel KantMen will not understand ... that when they fulfil their duties to men, they fulfil thereby God's commandments; that they are consequently always in the service of God, as long as their actions are moral, and that it is absolutely impossible to serve God otherwise.
Immanuel Kant