Duty is the necessity to act out of reverence for the law.
Immanuel Kant (2013). “Moral Law: Groundwork of the Metaphysics of Morals”, p.8, Routledge

Duty is the necessity to act out of reverence for the law.