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 Messenger of Allah ﷺ gave them the permission to leave (after Tawaf-Al-Ifada)."
أَنْ تَنْفِرَ إِذَا حَاضَتْ وَكَانَ ابْنُ عُمَرَ يَقُولُ فِي أَوَّلِ أَمْرِهِ إِنَّهَا لاَ تَنْفِرُ ثُمَّ سَمِعْتُهُ يَقُولُ تَنْفِرُ إِنَّ رَسُولَ اللَّهِ ﷺ رَخَّصَ لَهُنَّ