Some pose this dilemma: "Is what God commands good because He commands it? Or does God command it because it is good?"
This is a false dilemma.
In the traditional monotheistic view, the good is neither arbitrary nor external to God.
It flows from His very nature, just, wise, perfect.