[Machine] Regarding the scholars of the people of Madinah, they used to say that if a woman went around the Kaaba and then intended to go around Safa and Marwah but she started menstruating, she should continue to go around Safa and Marwah even if she is menstruating. Similarly, if one has sexual intercourse after circling the Kaaba and before performing Sa'i, they should also perform Sa'i.
عَنِ الْفُقَهَاءِ مِنْ أَهْلِ الْمَدِينَةِ كَانُوا يَقُولُونَ أَيُّمَا امْرَأَةٍ طَافَتْ بِالْبَيْتِ ثُمَّ وَجَّهَتْ لِتَطُوفَ بِالصَّفَا وَالْمَرْوَةِ فَحَاضَتْ فَلْتَطُفْ بِالصَّفَا وَالْمَرْوَةِ وَهِيَ حَائِضٌ وَكَذَلِكَ الَّذِي يُحْدِثُ بَعْدَ أَنْ يَطُوفَ بِالْبَيْتِ وَقَبْلَ أَنْ يَسْعَى