It is narrated from Sayyiduna Abu Qatadah Ansari (may Allah be pleased with him) that the Prophet Muhammad (peace and blessings be upon him) performed prayer while carrying Sayyida Umamah bint Zaynab bint Rasulullah (peace and blessings be upon him), who was the daughter of Sayyiduna Abu al-As ibn Rabi' ibn Abd Shams (may Allah be pleased with him). When he (peace and blessings be upon him) would go into prostration, he would put her down, and when he stood up, he would pick her up again.
Hadith Referenceالسنن المأثورة / باب ما جاء في الصلاة في السفر / 21
Hadith Takhrijصحيح بخارى، الصلاة، باب اذا حمل جارية صغيره على عنقه في الصلاة، رقم: 516، صحيح مسلم، المساجد ومواضع الصلاة باب جواز حمل الصبيان في الصلاة، رقم: 543