The Prophet ﷺ used to pray while sitting, reciting in that position. When about thirty or forty verses of his recitation remained, he would stand up and complete the recitation while standing, then bow and prostrate. He would do the same in the second rakah.
أخبرنا محمد بن سلمة قال حدثنا ابن القاسم عن مالك قال حدثني عبد الله بن يزيد وأبو النضر عن أبي سلمة
أن النبي ﷺ كان يصلي وهو جالس فيقرأ وهو جالس فإذا بقي من قراءته قدر ما يكون ثلاثين أو أربعين آية قام فقرأ وهو قائم ثم ركع ثم سجد ثم يفعل في الركعة الثانية مثل ذلك
Bukhari transmitted it in the Book of Shortening the Prayer, chapter, "If he prayed sitting, then recovered or felt able, he completes what remains," hadith 1119, and Muslim in the Book of the Prayer of Travelers, chapter on the permissibility of voluntary prayer standing or sitting, etc., hadith 112/731, from the hadith of Malik with this wording, and it is in Muwatta (Yahya), 138/1.