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.
Moses was a descendant of Abraham. He gave the world the Torah, which he said was based on revelations given to him by God. Judaism is based on the teachings contained in this book.
Muhammad was a descendant of Abraham. He gave the world the Koran, which he said was based on revelations given to him by God. Islam is based on the teachings contained in this book.
The similarities between these two aren’t just a coincidence.