Full Idea
All the morality of actions may be placed in their necessity from duty and from respect for the law, and not from love for or leaning toward that which the action is to produce.
Gist of Idea
Morality involves duty and respect for law, not love of the outcome
Source
Immanuel Kant (Critique of Practical Reason [1788], I.1.III)
Book Reference
Kant,Immanuel: 'Critique of Practical Reason (Third edition)', ed/tr. Beck,Lewis White [Library of Liberal Arts 1993], p.85
A Reaction
Kant tries to reject consequentialism, but you cannot assess your duty or the universal law without an assessment of probable consequences, and we could never choose between laws if we did not already see value in the outcome.