The Prophet ﷺ used to pray while seated, reciting in that position. When about thirty or forty verses of his recitation remained, he would stand and complete the recitation while standing, then perform the bowing and prostration. He would do the same in the second cycle of prayer.
حدثنا الأنصاري حدثنا معن حدثنا مالك عن أبي النضر عن أبي سلمة
أن النبي ﷺ كان يصلي جالسا فيقرأ وهو جالس فإذا بقي من قراءته قدر ما يكون ثلاثين أو أربعين آية قام فقرأ وهو قائم ثم ركع وسجد ثم صنع في الركعة الثانية مثل ذلك
Agreed upon (by Bukhari and Muslim). Bukhari narrated it in "Shortening the Prayer," chapter: If one prays sitting and then recovers or finds strength, he completes what remains, hadith no. 1119, and Muslim, hadith no. 731, from the hadith of Malik through the same chain, and it is in Muwatta, 1/138.