Abu Qatada reported,

While we were sitting in the mosque, the Messenger of Allah ﷺ came out to us carrying Umama, the daughter of Abu al-As bin Rabi. Her mother was Zaynab, the daughter of the Messenger of Allah ﷺ. She was a small child whom he was carrying. The Messenger of Allah ﷺ prayed while she was on his shoulder, setting her down when he bowed and lifting her back up when he stood, until he finished his prayer, doing this with her throughout.

Nasai 712

Sahih

أخبرنا قتيبة قال حدثنا الليث عن سعيد بن أبي سعيد عن عمرو بن سليم الزرقي أنه سمع

أبا قتادة يقول

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

النسائي 712صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Mosques
Chapter
Bringing children into mosques
Numbering
Darussalam 712
Nasai 712