The Basis of Morality by Part 2 Chapter 8 Page 3

Nevertheless, it is true that our actions are attended with a consciousness of independence and original initiative, which makes us recognise them as our own work, and every one with ineradicable certainty feels that he is the real author of his conduct, and morally responsible for it.

But since responsibility implies the possibility of having acted otherwise, which possibility means freedom in some sort or manner; therefore in the consciousness of responsibility is indirectly involved also the consciousness of freedom. The key to resolve the contradiction, that thus arises out of the nature of the case, was at last found by Kant through the distinction he drew with profound acumen, between phaenomena and the Thing in itself (das Ding an sich). This distinction is the very core of his whole philosophy, and its greatest merit.