A menstruating woman was allowed to leave Mecca if she had done Tawaf-al-Ifada. Tawus (a subnarrator) said from his father, "I heard Ibn ʿUmar saying that she would not depart. Then later I heard him saying that the Prophet ﷺ had allowed them (menstruating women) to depart."
وَسَمِعْتُ ابْنَ عُمَرَ يَقُولُ إِنَّهَا لاَ تَنْفِرُ ثُمَّ سَمِعْتُهُ يَقُولُ بَعْدُ إِنَّ النَّبِيَّ ﷺ رَخَّصَ لَهُنَّ