From Sahih Bukhari (Hadith 5996):
Narrated Abu Qatada:The Prophet (ﷺ) came out towards us, while carrying Umamah, the daughter of Abi Al-As (his granddaughter) over his shoulder. He prayed, and when he wanted to bow, he put her down, and when he stood up, he lifted her up
Reference: Bukhari 5996