The Metaphysical Elements of Ethics by Immanuel Kant Chapter 5 Page 7

the sacrifice of my not immoral ends. It is not directly a duty to seek a competence for one's self; but indirectly it may be so; namely, in order to guard against poverty which is a great temptation to vice. But then it is not my happiness but my morality, to maintain which in its integrity is at once my end and my duty.