The Messenger of Allah ﷺ was leading the people in prayer with Umamah daughter of Zainab daughter of the Messenger of Allah ﷺ (in his lap). When he prostrated, he put her down and when he got up(after prostration) he lifted her up. (Using translation from Abū Dāʾūd 917)
أَنَّ رَسُولَ اللهِ ﷺ كَانَ يُصَلِّي وَهُوَ حَامِلٌ أُمَامَةَ بِنْتَ زَيْنَبَ فَإِذَا رَكَعَ وَسَجَدَ وَضَعَهَا وَإِذَا قَامَ حَمَلَهَا