Reason for the stoning of the Jamarat as a rite of Hajj
"When Ibrahim, the beloved friend of Allah, performed the rituals, Satan appeared to him at the Jamrat al-'Aqabah and threw stones at him seven times until he sank into the ground. Then he appeared to him at the second Jamrah and threw stones at him seven times until he sank into the ground. Then he appeared to him at the third Jamrah and threw stones at him seven times until he sank into the ground."
[Machine] Ibn Abbas said, "You are stoning the Shaytan and boasting about the faith of your father."
«لَمَّا أَتَى إِبْرَاهِيمُ خَلِيلُ اللَّهِ الْمَنَاسِكَ عَرَضَ لَهُ الشَّيْطَانُ عِنْدَ جَمْرَةِ الْعَقَبَةِ فَرَمَاهُ بِسَبْعِ حَصَيَاتٍ حَتَّى سَاخَ فِي الْأَرْضِ ثُمَّ عَرَضَ لَهُ عِنْدَ الْجَمْرَةِ الثَّانِيَةِ فَرَمَاهُ بِسَبْعِ حَصَيَاتٍ حَتَّى سَاخَ فِي الْأَرْضِ ثُمَّ عَرَضَ لَهُ عِنْدِ الْجَمْرَةِ الثَّالِثَةِ فَرَمَاهُ بِسَبْعِ حَصَيَاتٍ حَتَّى سَاخَ فِي الْأَرْضِ»
قَالَ ابْنُ عَبَّاسٍ «الشَّيْطَانَ تَرْجُمُونِ وَمِلَّةَ أَبِيكُمْ تَنْعُونَ»