God tested Abraham.
God tested Abraham and said to him, “Abraham!” And he said, “Here I am.” He said, “Take your son, your only son Isaac, whom you love, and go to the land of Moriah, and offer him there as a burnt offering on one of the mountains of which I shall tell you.” So Abraham rose early in the morning, saddled his donkey, and took two of his young men with him, and his son Isaac. And he cut the wood for the burnt offering and arose and went to the place of which God had told him.
Abraham obeyed but God stopped him from carrying out the sacrifice.
Then Abraham reached out his hand and took the knife to slaughter his son. But the angel of the LORD called to him from heaven and said, “Abraham, Abraham!”
And he said, “Here I am.”
He said, “Do not lay your hand on the boy or do anything to him, for now I know that you fear God, seeing you have not withheld your son, your only son, from me.”
And Abraham lifted up his eyes and looked, and behold, behind him was a ram, caught in a thicket by his horns. And Abraham went and took the ram and offered it up as a burnt offering instead of his son.