According to the divine command theory of morality, morality comes from God, and anything God says or does is inherently moral. But that raises an important question, as Socrates put it so eloquently:
Is that which is pious loved by the gods because it is pious, or is that which is pious pious because it is loved by the gods? – Socrates, Euthyphro
That line is now known as the “Euthyphro dilemma”, and for good reason, it raises the issue of the ultimate nature of divine morality. Is divine morality objective or subjective? There are no easy answers to this, and I am afraid I cannot come up with any myself, but this dilemma does beg the ultimate question: If anything God does is inherently moral, does that mean that genocide is moral when God commits genocide? If so, would the Holocaust have been a moral action if it was God who perpetrated it rather than Hitler?