[Machine] Aisha said, "I asked the Messenger of Allah ﷺ about a woman whose menstruation becomes irregular and she experiences unexpected bleeding, and she doesn't know how to pray. The Messenger of Allah ﷺ commanded me to tell her to estimate the duration of her normal menstrual cycle every month, and when her period comes, she should count the days and nights, then she should stop praying for that period of time. After that, she should perform ghusl (ritual purification) and ensure cleanliness, then seek forgiveness with a cloth, and then she can pray. I hope that this is from Shaytan and that Allah will remove it from her if He wills." Aisha continued, "I commanded her to do so, and she did it, and Allah removed it from her. So, inform your companion about this, using the words of the hadith of Ibrahim bin Ali."
لَهَا عَائِشَةُ سَأَلْتُ رَسُولَ اللهِ ﷺ لِامْرَأَةٍ فَسَدَ حَيْضَتُهَا وَأُهْرِيقَتْ دَمًا لَا تَدْرِي كَيْفَ تُصَلِّي؟ قَالَتْ فَأَمَرَنِي رَسُولُ اللهِ ﷺ أَنْ آمُرَهَا فَلْتَنْظُرْ قَدْرَ مَا كَانَتْ تَحِيضُ فِي كُلِّ شَهْرٍ وَحَيْضُهَا مُسْتَقِيمٌ فَلْتَعْتَدَّ وَفِي حَدِيثِ إِسْمَاعِيلَ فَلْتَقْعُدْ وَتُقَدِّرْ ذَلِكَ مِنَ الْأَيَّامِ وَاللَّيَالِي ثُمَّ لِتَدَعِ الصَّلَاةَ فِيهِنَّ بِقَدْرِهِنَّ ثُمَّ لِتَغْتَسِلْ وَلْتَحْسُنْ طُهْرَهَا ثُمَّ تَسْتَدْفِرْ بِثَوْبٍ ثُمَّ تُصَلِّي فَإِنِّي أَرْجُو أَنْ يَكُونَ هَذَا مِنَ الشَّيْطَانِ وَأَنْ يُذْهِبَهُ اللهُ تَعَالَى عَنْهَا إِنْ شَاءَ اللهُ تَعَالَى قَالَتْ فَأَمَرْتُهَا فَفَعَلَتْ فَأَذْهَبَهَا اللهُ عَنْهَا فَمُرِي صَاحِبَتَكِ بِذَلِكَ لَفْظُ حَدِيثِ إِبْرَاهِيمَ بْنِ عَلِيٍّ