1788
“Now it was seen to be a duty for us to promote the summum bonum; consequently it is not merely allowable, but it is a necessity connected with duty as a requisite, that we should presuppose the possibility of this summum bonum; and as this is possible only on condition of the existence of God, it inseparably connects the supposition of this with duty; that is, it is morally necessary to assume the existence of God.”
Critique of Practical Reason — the existence of God as a postulate of pure practical reason
Source