Abu Hurairah reported,

The Messenger of Allah ﷺ used to pray until his feet became swollen. Someone said to him, "Do you do this when Allah has already forgiven you your past and future sins?"He replied, "Should I not be a grateful servant?"

Azami 2663

Sahih

عن أبي هريرة قال

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

الأعظمي 2663صحيح
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 2663 (2nd edition)
Azami 2663