Sayyiduna Anas bin Malik (may Allah be pleased with him) narrates: Once the Prophet Muhammad (peace be upon him) passed by a rope tied between two pillars in the mosque. He inquired: "What is this rope for?" The people replied: "So-and-so woman performs prayer, and when she fears sleep overcoming her, she holds onto it." The Prophet Muhammad (peace be upon him) said: "She should pray as long as she is alert, and when sleep overcomes her, she should go to sleep."
Hadith Referenceصحیح ابن حبان / كتاب الصلاة / 2587
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح: ق - انظر (2483). تنبيه!! رقم (2483) = (2492) من «طبعة المؤسسة». - مدخل بيانات الشاملة -.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط مسلم