Abu Hurairah reported,

We were praying the evening prayer with the Messenger of Allah ﷺ, and whenever he prostrated, Hasan and Husayn would jump onto his back. When he raised his head, he would gently take hold of them from behind and place them on the ground. As soon as he prostrated again, they would climb back on, and this continued until he finished his prayer, when he sat them on his thighs.I then went up to him and said, "Messenger of Allah, shall I send them back?"Just then a flash of lightning struck, and he said to them, "Go back to your mother."Its light remained until they had reached her.

Azami 2631

Hasan

عن أبي هريرة قال

كنا نصلي مع رسول الله ﷺ العشاء، فإذا سجد وثب الحسن والحسين على ظهره، فإذا رفع رأسه أخذهما بيده من خلفه أخذا رفيقا فيضعهما على الأرض، فإذا عاد عادا، حتى قضى صلاته، أقعدهما على فخذيه. قال: فقمت إليه فقلت: يا رسول الله أردهما، فبرقت برقة فقال لهما: ألحقا بأمكما قال: فمكث ضوؤها حتى دخلا.

الأعظمي 2631حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Minor actions do not invalidate the prayer
Section
Carrying children during prayer
Numbering
Jami al-Kamil 2631 (2nd edition)
Azami 2631