Neither the Kitab-i-Aqdas nor the Bayan.
From the lineage of Isaac came Judaism, from Ismael came Islam.
…Abraham stood fast and showed forth extraordinary constancy, and God changed His exile into abiding honour, till at last He established the oneness of God… This exile became the cause of the progress of Abraham’s descendants. This exile resulted in the diffusion of Abraham’s teachings. This exile resulted in the appearance of a Jacob from the seed of Abraham, and of a Joseph who became ruler of Egypt. This exile resulted in the appearance of a Moses from that same seed. This exile resulted in a Hagar being found, of who Ishmael was begotten, and from whom Muhammad in turn descended. This exile resulted in the appearance of the Prophets of Israel from the progeny of Abraham—and so will continue forevermore. …Behold what a power it was that enabled an emigrant to establish such a family, to found such a nation, and to promulgate such teachings.
Abdu’l-Baha,
Some Answered Questions, newly revised edition, p. 15.
This seems to me to be the most important distinction to make between Isaac and Ishmael. Who was nearly sacrificed doesn't matter at all to Baha'is but it does matter to Christian apologists who want to criticise both Islam and the Baha'i Faith.
In Gleanings from the Writings of Bahá'u'lláh, passage number 32, Bahá'u'lláh mentions the sacrifice that Abraham must make to prove His faith. It states:
"That which thou hast heard concerning Abraham, the Friend of the All-Merciful, is the truth, and no doubt is there about it. The Voice of God commanded Him to offer up Ishmael as a sacrifice, so that His steadfastness in the Faith of God and His detachment from all else but Him may be demonstrated unto men. The purpose of God, moreover, was to sacrifice him as a ransom for the sins and iniquities of all the peoples of the earth."
In the Bible, however, The sacrifice is not of Ishmael, son of Hagar, but of Isaac, son of Sarah. The passage in Genesis 22:12 states:
1 Some time later God tested Abraham. He said to him, "Abraham!"
"Here I am," he replied.
2 Then God said, "Take your son, your only son, Isaac, whom you love, and go to the region of Moriah. Sacrifice him there as a burnt offering on one of the mountains I will tell you about."
3 Early the next morning Abraham got up and saddled his donkey. He took with him two of his servants and his son Isaac. When he had cut enough wood for the burnt offering, he set out for the place God had told him about. 4 On the third day Abraham looked up and saw the place in the distance. 5 He said to his servants, "Stay here with the donkey while I and the boy go over there. We will worship and then we will come back to you."
6 Abraham took the wood for the burnt offering and placed it on his son Isaac, and he himself carried the fire and the knife. As the two of them went on together, 7 Isaac spoke up and said to his father Abraham, "Father?"
"Yes, my son?" Abraham replied.
"The fire and wood are here," Isaac said, "but where is the lamb for the burnt offering?"
8 Abraham answered, "God himself will provide the lamb for the burnt offering, my son." And the two of them went on together.
9 When they reached the place God had told him about, Abraham built an altar there and arranged the wood on it. He bound his son Isaac and laid him on the altar, on top of the wood.
10 Then he reached out his hand and took the knife to slay his son.
11 But the angel of the Lord called out to him from heaven, "Abraham! Abraham!"
"Here I am," he replied.
12 "Do not lay a hand on the boy," he said. "Do not do anything to him. Now I know that you fear God, because you have not withheld from me your son, your only son."
Shoghi Effendi has commented that the Quran
corroborates Baha'u'llah's statement.
"As to the question raised by the Racine Assembly in connection with Bahá'u'lláh's statement in the 'Gleanings' concerning the sacrifice of Ishmael: Although this statement does not agree with that made in the Bible, Genesis 22:9, the friends should unhesitatingly, and for reasons that are only too obvious, give precedence to the sayings of Bahá'u'lláh which, it should be pointed out, are fully corroborated by the Qur'an, which book is more authentic than the Bible including both the New and the Old Testaments. The Bible is not wholly authentic, and in this respect is not to be compared with the Qur'an, and should be wholly subordinated to the authentic writings of Bahá'u'lláh."
(From a letter written on behalf of the Guardian to the National Spiritual Assembly of the United States and Canada, July 28, 1936: Bahá'í News, No. 103, p. 1, October 1936, in
Lights of Guidance, no.
1688)
For an Islamic perspective that the Quran corroborates Ishmael being sacrificed and not Isaac read:
The Sacrifice Of Abraham