Sheikh Yasir Qadhi teaches us that the practice of stoning the Devil during the Hajj pilgrimage is Abrahamic. Whilst Abraham was attempting to fulfil God's order of sacrificing Ishmael Satan appeared and tried to prevent Abraham from obeying the command of God - Abraham pelted Satan with 7 stones.
Thus the act of pelting the Devil during the Hajj is Abrahamic. It's not a pagan act.