Sayyiduna Anas (may Allah be pleased with him) narrates: The Prophet Muhammad (peace and blessings be upon him) entered the mosque and saw a rope tied between two pillars. He inquired: What is this? The people replied: This is for such-and-such woman; when she performs prayer and becomes tired, she holds on to it. The Prophet Muhammad (peace and blessings be upon him) said: She should pray as long as she is energetic; when she fears that sleep is overcoming her, then she should go to sleep.
Hadith Referenceصحیح ابن حبان / كتاب الصلاة / 2493
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - انظر ما قبله.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرطهما، أبو خيثمة: هو زهير بن حرب.