It is narrated from Aisha (may Allah be pleased with her) that she said: Safiyyah (may Allah be pleased with her) became menstruating after performing the Tawaf al-Ifadah, so I mentioned her menstruation to the Messenger of Allah (peace and blessings be upon him). Upon this, he (peace be upon him) said: "Is she the one who will detain us?" Then I said: O Messenger of Allah! She became menstruating after performing the Tawaf al-Ziyarah. He (peace be upon him) said: "Then there is no (harm)." Imam Shafi’i (may Allah have mercy on him) said: Imam Malik (may Allah have mercy on him) narrated to us from Abdur Rahman bin Qasim in the same manner.
Hadith Referenceمسند الإمام الشافعي / كتاب الحج / 1037
Hadith Takhrijاخرجه البخاري، الحج باب اذا حاضت المرأة بعد ما افاضت (1757) ومسلم، الحج، باب وجوب طواف الوداع وسقوطه عن الحائض (1211 ، بعد 1328)۔