Deontological ethics
The term  divine command theory is used for several ideas that say that an action is right if God says that it is right. William of Ockham, René Descartes and eighteenth-century Calvinists all believed this, according to Ralph Cudworth, because they all stated that moral obligations arise from God's commands.