Ayesha reported,

The Prophet ﷺ used to stand in prayer at night until his feet became cracked.Ayesha asked, "Why do you do this, Messenger of Allah, when Allah has forgiven you your past and future sins?"He replied, "Should I not love to be a grateful servant?"When he grew heavier in body, he would pray sitting down, and when he wanted to bow, he would stand up, recite, and then bow.

Azami 2662

Sahih

عن عائشة

أن النبي ﷺ كان يقوم من الليل حتى تتفطر قدماه، فقالت عائشة: لم تصنع هذا يا رسول الله، وقد غفر الله لك ما تقدم من ذنبك وما تأخر؟ قال: أفلا أحب أن أكون عبدا شكورا، فلما كثر لحمه صلى جالسا، فإذا أراد أن يركع قام فقرأ، ثم ركع.

الأعظمي 2662صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Minor actions do not invalidate the prayer
Section
Striving of the Prophet ﷺ in night prayer to raise ﷺ in ranks and elevate in status
Numbering
Jami al-Kamil 2662 (2nd edition)
Azami 2662