Anas bin Malik reported,

The Messenger of Allah ﷺ entered the mosque and saw a rope stretched between two pillars.He asked, "What is this rope?"They said, "It belongs to Zaynab. She prays holding onto it, and when she grows weary, she clings to it."He said, "Untie it, untie it. Let one of you pray as long as he is energetic, and when he tires, let him sit down."

Ibn Majah 1371

Sahih

حدثنا عمران بن موسى الليثي حدثنا عبد الوارث بن سعيد عن عبد العزيز بن صهيب

عن أنس بن مالك

أن رسول الله ﷺ دخل المسجد فرأى حبلا ممدودا بين ساريتين فقال ما هذا الحبل قالوا لزينب تصلي فيه فإذا فترت تعلقت به فقال حلوه حلوه ليصل أحدكم نشاطه فإذا فتر فليقعد

ابن ماجه 1371صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
One praying when he becomes drowsy
Numbering
Darussalam 1371
Ibn Majah 1371