Abu Qatada reported,

The Messenger of Allah ﷺ used to pray while carrying Umama, the daughter of Zaynab, daughter of the Messenger of Allah ﷺ, whose father was Abu al-As bin Rabia bin Abd Shams. When he prostrated, he would put her down, and when he stood, he would carry her.

Azami 2629

Sahih

عن أبي قتادة الأنصاري

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

الأعظمي 2629صحيح
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 2629 (2nd edition)
Azami 2629