I saw the Messenger of Allah ﷺ, when he stood for prayer, raise his hands until they were level with his shoulders, then he would say the takbir. He would do the same when he said the takbir for bowing, and he would do the same when he raised his head from bowing, saying, "Allah hears whoever praises Him." He would not do this in prostration.
أخبرنا سويد بن نصر قال أنبأنا عبد الله بن المبارك عن يونس عن الزهري قال أخبرني سالم
رأيت رسول الله ﷺ إذا قام إلى الصلاة رفع يديه حتى تكونا حذو منكبيه ثم يكبر قال وكان يفعل ذلك حين يكبر للركوع ويفعل ذلك حين يرفع رأسه من الركوع ويقول سمع الله لمن حمده ولا يفعل ذلك في السجود
Bukhari transmitted it in the Book of Adhan, Chapter on Raising the Hands When Saying the Takbir, When Bowing, and When Rising, hadith 736, and Muslim, hadith 23/390. See the preceding hadith, narrated from Ibn Mubarak with the same wording. It is also found in Al-Kubra.