Narrated `Aisha
(the wife of the Prophet) I told Allah's Messenger (ﷺ) that Safiya bint Huyai had got her menses. He said, "She will probably delay us. Did she perform Tawaf (Al-Ifada) with you?" We replied, "Yes." On that the Prophet (ﷺ) told her to depart.
Narrated Ibn `Abbas
A woman is allowed to leave (go back home) if she gets menses (after Tawaf-Al-Ifada).
Ibn `Umar
formerly used to say that she should not leave but later on I heard him saying, "She may leave, since Allah's Messenger (ﷺ) gave them the permission to leave (after Tawaf-Al-Ifada)."