The Messenger of Allah ﷺ said, "Jibreel took Ibrahim to the pillar at Aqabah, and Satan appeared before him there, so he pelted him with seven pebbles and Satan sank into the ground. Then Jibreel brought him to the middle pillar, and Satan appeared before him, so he pelted him with seven pebbles and Satan sank into the ground. Then he brought him to the farthest pillar, and Satan appeared before him, so he pelted him with seven pebbles and Satan sank into the ground."When Ibrahim intended to sacrifice his son Ishaq, the boy said to his father, 'Father, bind me tightly so that I do not struggle and my blood splatters on you when you sacrifice me.' So he bound him fast. Then, when he took up the knife and was about to sacrifice him, a voice called out from behind him, 'Ibrahim, you have fulfilled the vision' [Saffat 37:104–105]."
أن رسول الله ﷺ قال: إن جبريل ذهب بإبراهيم إلى جمرة العقبة، فعرض له الشيطان فرماه بسبع، حصيات، فساخ، ثم أتى به الجمرة الوسطى، فعرض له الشيطان فرماه بسبع حصيات فساخ، ثم أتى به الجمرة القصوى فعرض له الشيطان فرماه بسبع حصيات فساخ، فلما أراد إبراهيم أن يذبح ابنه إسحاق قال لأبيه: يا أبت أوثقني لا أضطرب، فينتضح عليك من دمي إذا ذبحتني فشده، فلما أخذ الشفرة فأراد أن يذبحه نودي من خلفه{أن يا إبراهيم قد صدقت الرؤيا} [الصافات: ١٠٤-١٠٥].
Imam Ahmad narrated it (2794) from Yunus, who said, Hammad reported to us, from Ata bin Saaib, from Saeed bin Jubayr, from Ibn Abbas, and he related it. Its chain is sahih. Ata bin Saaib is trustworthy, the leading scholars affirmed his reliability, but he became confused in his memory toward the end of his life, and Hammad here is Ibn Salama, who was among those who narrated from Ata before his confusion set in.The mention of "Ishaq" in this narration is evidence that the narrator did not accurately preserve the name of the one intended for sacrifice, because the sound and established view held by the majority of scholars is that the one intended for sacrifice was Ismail , and the meaning conveyed by the Quran regarding the name of the one intended for sacrifice supports this.I have discussed this matter in detail in my book, Studies in Judaism and Christianity and the Religions of Hind, so refer to it, for you will find there what you will not find elsewhere.