Anas bin Malik reported,

The Prophet ﷺ entered the mosque and saw a rope stretched between two pillars. He asked, "What is this rope?"They replied, "This is Zaynab's rope. When she becomes tired, she holds onto it."The Prophet ﷺ said, "No, untie it. Let any of you pray as long as he is energetic, and when he becomes tired, let him sit down."

Azami 2777

Sahih

عن أنس بن مالك قال

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

الأعظمي 2777صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Minor actions do not invalidate the prayer
Section
Perseverance in deeds even if they are few
Numbering
Jami al-Kamil 2777 (2nd edition)
Azami 2777