Immanuel Kant said this quote

[It] is nevertheless better than the theological concept, of deriving morality from a divine, all-perfect will, not merely because we do not intuit this perfection, but can derive it solely from our concepts, of which morality is the foremost one, but because if we do not do this (which, if we did, would be a crude circle in explanation), the concept of his will that is left over to us, the attributes of the desire for glory and domination, bound up with frightful representations of power and vengeance, would have to make a foundation for a system of morals that is directly opposed to morality.