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.
أن رسول الله ﷺ كان يصلي وهو حامل أمامة بنت زينب بنت رسول الله ﷺ، ولأبي العاص بن ربيعة، ابن عبد شمس: فإذا سجد وضعها. وإذا قام حملها.
Malik narrated it in "Shortening the Prayer While Traveling" (81), from Amir bin Abdullah bin Zubayr, from Amr bin Salim Zarqi, from Abu Qatada Ansari, and he related it. Bukhari narrated it in "The Prayer" (516), from Abdullah bin Yusuf, and Muslim narrated it through several routes, all of them from Malik, with the same wording.Bukhari also narrated it (5996), and Muslim, from the hadith of Saeed Maqburi, from Amr bin Salim, with the same chain, and in it, "The Messenger of Allah ﷺ came out to us with Umama bint Abu As on his shoulder, and he prayed. When he bowed he set her down, and when he rose he lifted her up again." This contains an indication that this took place during congregational prayer.An explicit statement occurs in the narration of Uthman bin Abu Sulayman and Ibn Ajlan, that the two of them heard from Amir bin Abdullah bin Zubayr, with the same chain, that Abu Qatada said, "I saw the Prophet ﷺ leading the people in prayer while Umama bint Abu As was on his shoulder." Likewise, an explicit statement occurs in the narration of Makhrama, from his father, from Amr bin Salim. All of these are found in Muslim.However, Abu Dawud said (1/565), "Makhrama did not hear from his father except one hadith." I say, Ibn Madini likewise said that he did not hear from his father except a little. But it is established that he used to report from his father through wijada, as the Hafiz said in Taqrib, "His narration from his father is by wijada from his book, as Ahmad, Ibn Main, and others have stated."Wijada is one of the methods of transmitting hadith, and it is sahih and connected according to the hadith scholars. The two Shaykhs relied on it in many places in their two Sahihs, and Muslim relied on Makhrama's narration from his father in his Sahih.