[Machine] Regarding prayer, if a woman completes her menstrual cycle (and attains purity) within forty days, then she should resume praying. However, if her purity does not come before the end of the fifth or sixth day, then she must refrain from prayer for that many days. If she attains purity within this period, then she should resume praying. Otherwise, she must refrain from prayer until she attains purity or until fifty days pass. If she attains purity during this period, then she should resume praying; otherwise, she must perform ghusl (ritual bathing).
عَنِ الصَّلَاةِ أَرْبَعِينَ يَوْمًا فَإِنْ رَأَتِ الطُّهْرَ فَذَاكَ وَإِنْ لَمْ تَرَ الطُّهْرَ أَمْسَكَتْ عَنِ الصَّلَاةِ أَيَّامًا خَمْسًا سِتًّا فَإِنْ طَهُرَتْ فَذَاكَ وَإِلَّا أَمْسَكَتْ عَنِ الصَّلَاةِ مَا بَيْنَهَا وَبَيْنَ الْخَمْسِينَ فَإِنْ طَهُرَتْ فَذَاكَ وَإِلَّا فَهِيَ مُسْتَحَاضَةٌ»