Is the sunna of God’s messenger not enough for you ? If any of you is detained from the pilgrimage he should perform the circumambulation of the House and go between as-Safa, and al-Marwa, then come right out of the sacred state and perform the pilgrimage the following year. He should sacrifice an animal, or fast if he cannot get any.
‘A’isha said that God’s messenger went in to visit Duba'a daughter of az-Zubair and said to her, “Perhaps you intended to perform the pilgrimage ?” She replied, “I swear by God that I am suffering from pain,” so he said, “Perform the pilgrimage, but make a proviso saying, ‘O God, the place where I take off the ihram will be where Thou restrainest me’.”
We went out with God’s messenger but the infidels of Quraish barred the way to the House, so the Prophet sacrificed his animals and had his head shaved, and his companions clipped their hair.