Immanuel Kant said this quote

Religion is the recognition of all our duties as divine commands.