Abu Qatada reported,

The Messenger of Allah ﷺ used to pray while carrying Umama, the daughter of Zaynab the daughter of the Messenger of Allah ﷺ, whose father was Abu al-As bin Rabi. When he stood, he would carry her, and when he prostrated, he would put her down.Yahya said that Malik confirmed this.

Muslim 1212

Sahih

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

عن أبي قتادة

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

مسلم 1212صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Permissibility of carrying children during prayer
Numbering
Darussalam 1212
Muslim 1212