Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) said that Jibril came to the Messenger of Allah (peace and blessings be upon him) and took him to show him the rites. (Mount) Thabir split open for him, and he entered Mina; he showed him the Jamarat, then Muzdalifah, then the plain of Arafat. Then Satan appeared before the Prophet (peace and blessings be upon him) at the Jamrah, and he (peace and blessings be upon him) threw seven pebbles at him until he sank. Then he appeared at the second Jamrah, and he (peace and blessings be upon him) threw seven pebbles at him until he sank. Then he appeared at Jamrat al-Aqabah, and he (peace and blessings be upon him) threw seven pebbles at him until he sank.
Only Ata bin al-Sa'ib narrated it in this way.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9694