Narrated Ibn `Abbas: A man said to the Prophet I performed the Tawaf-al-Ifada before the Rami (throwing pebbles at the Jamra). The Prophet replied, There is no harm. The man said, I had my head shaved before slaughtering. The Prophet replied, There is no harm. He said, I have slaughtered the Hadi before the Rami. The Prophet replied, There is no harm.