It is narrated from Sayyiduna Abu Qatadah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) was praying while carrying his granddaughter Sayyidah Umamah bint Zaynab (may Allah be pleased with her), who was the daughter of Abu al-As bin Rabi'ah. When he (peace and blessings be upon him) prostrated, he would put her down, and when he stood up, he would pick her up.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3421
Sayyiduna Abu Qatadah al-Ansari (may Allah be pleased with him) narrates: I saw the Messenger of Allah (peace and blessings be upon him) leading the people in prayer while Umamah bint Abi al-As, the daughter of Sayyidah Zaynab (may Allah be pleased with her), the daughter of the Messenger of Allah (peace and blessings be upon him), was sitting on his shoulders. When he bowed, he would put her down, and when he finished the prostration, he would pick her up again.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3422