When the Messenger of Allah ﷺ stood up for prayer, he would say the takbir as he stood, then say the takbir as he bowed. When he raised his back from the bowing position, he would say, "Allah hears whoever praises Him." Then, while standing, he would say, "Our Lord, to You belongs all praise." Then he would say the takbir as he went down into prostration, then say the takbir as he raised his head, then say the takbir as he went down into prostration again, then say the takbir as he raised his head. He would do this throughout the entire prayer until he completed it, and he would say the takbir when he rose after the sitting following the second prostration.
حدثنا حجاج قال حدثنا ليث قال حدثني عقيل بن خالد عن ابن شهاب أنه قال أخبرني أبو بكر بن عبد الرحمن بن الحارث أنه
كان رسول الله ﷺ إذا قام إلى الصلاة يكبر حين يقوم ثم يكبر حين يركع ثم يقول سمع الله لمن حمده حين يرفع صلبه من الركعة ثم يقول وهو قائم ربنا لك الحمد ثم يكبر حين يهوي ساجدا ثم يكبر حين يرفع رأسه ثم يكبر حين يهوي ساجدا ثم يكبر حين يرفع رأسه ثم يفعل ذلك في الصلاة كلها حتى يقضيها ويكبر حين يقوم من اللتين بعد الجلوس