Abu Asim al-Ghanawi (may Allah have mercy on him) narrated a similar hadith, but he added a few things. He said that he (peace and blessings be upon him) went between al-Safa and al-Marwah riding on a camel. And here he also added: Then Satan appeared at the middle Jamrah, and he threw seven pebbles at him until he went away. Then he laid him (his son) on his forehead, and Isma'il (peace be upon him) was wearing a white shirt. He said: "O my dear father! I have no garment in which you could shroud me." So he began to take off that shirt, and a voice called from behind him: "You have fulfilled the vision. Indeed, thus do We reward the doers of good" [Surah al-Saffat: 104-105], "O Ibrahim! You have indeed fulfilled the vision; indeed, thus do We reward the doers of good." Ibrahim (peace be upon him) looked, and there was a white ram with large eyes and large horns, so he slaughtered it. Abdullah bin Abbas (may Allah be pleased with them both) said: I think we seek out rams of this very kind. Then Jibril (peace be upon him) took him to the farthest Jamrah, and Satan appeared, so he threw seven pebbles at him until he went away. Then he mentioned the rest of the hadith in the same way.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9696