The Messenger of Allah ﷺ used to pray both standing and sitting. When he began the prayer standing, he would perform the bowing while standing, and when he began the prayer sitting, he would perform the bowing while sitting.
أخبرنا عبدة بن عبد الرحيم قال أنبأنا وكيع قال حدثني يزيد بن إبراهيم عن ابن سيرين عن عبد الله بن شقيق
كان رسول الله ﷺ يصلي قائما وقاعدا فإذا افتتح الصلاة قائما ركع قائما وإذا افتتح الصلاة قاعدا ركع قاعدا