It is narrated from Abu Salamah bin Abdur Rahman that Sayyida Umm Sulaym (may Allah be pleased with her) asked the Messenger of Allah (peace be upon him), and she had experienced menstruation or childbirth after performing the Tawaf al-Ifadah on the Day of Sacrifice. The Messenger of Allah (peace be upon him) granted her permission, and she departed.
Imam Malik, may Allah have mercy on him, said that if a woman gets her menses in Mina, she should stay there until she performs the Tawaf al-Ifadah, and if she gets her menses after performing the Tawaf al-Ifadah, then she may return to her city, because a concession from the Messenger of Allah, peace and blessings be upon him, has reached us regarding a menstruating woman.