This page is theological context. It goes beyond the site's secular sources. The main answer uses secular sources only.
God ordered Abraham to kill his son—the Bible endorses child sacrifice.
The skeptic’s starting point is fair, and the entry grants it: the story begins with a command to offer a son, and Levenson writes that there is 'nothing in Genesis 22 to support the idea that God could not command the sacrifice of the son or that an animal is always to be substituted.' Secular evidence can show how the story ends and what the Law forbids. It cannot say why the test was given. That is theology, and the traditions answer it differently.
The New Testament reads the story through faith in resurrection. Hebrews 11:17 says: 'By faith Abraham, when put to the test, offered up Isaac.' It goes on to say that Abraham considered that God is able even to raise someone from the dead. The Catholic Catechism, in a paragraph on Abraham as a model of faith, says: 'and by faith Abraham offered his only son in sacrifice.' On this reading the story is about trust in a God who keeps a promise, and the rescission is part of that trust being honoured.
Levenson, a scholar of Jewish studies, discusses Kierkegaard’s reading of the story and sets it beside another, in which Abraham is 'placing obedience to God not above ethics, as Kierkegaard would have it, but above his love for Isaac'. He also says that the angel’s rescission is where a consensus finds the point of the story. Levenson’s own argument is more complex than these two lines, and we do not present it as his full position.
The skeptic may answer that a God who tests a father this way is not good, whatever the end. That objection is not met by the passages here. They show how the story has been read within the traditions that hold it, and where those traditions put the weight: on trust, on the rescission, and on the promise.