Ayesha reported,

I never saw the Messenger of Allah ﷺ perform any of the night prayer except standing, until he grew old. Then he began to pray sitting, and when about forty or thirty verses of his recitation remained, he would stand, recite them, and then prostrate.

Ibn Majah 1227

Sahih

حدثنا أبو مروان العثماني حدثنا عبد العزيز بن أبي حازم عن هشام بن عروة عن أبيه

عن عائشة قالت

ما رأيت رسول الله ﷺ يصلي في شيء من صلاة الليل إلا قائما حتى دخل في السن فجعل يصلي جالسا حتى إذا بقي عليه من قراءته أربعون آية أو ثلاثون آية قام فقرأها وسجد

ابن ماجه 1227صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Voluntary prayer while sitting
Numbering
Darussalam 1227
Ibn Majah 1227