Hadithcore
Mishkat al-Masabih, 1220

Al-Mughira said that the Prophet (ﷺ) got up at night to such an extent that his feet became swollen. On being asked why he did this when his former and latter sins had been forgiven him, he replied, “Should I not be a grateful servant?” (Bukhari and Muslim.)

وَعَنِ الْمُغِيرَةِ قَالَ: قَامَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ حَتَّى تَوَرَّمَتْ قَدَمَاهُ فَقِيلَ لَهُ: لِمَ تَصْنَعُ هَذَا وَقَدْ غُفِرَ لَكَ مَا تَقَدَّمَ مِنْ ذَنْبِكِ وَمَا تَأَخَّرَ؟ قَالَ: «أَفَلَا أَكُونُ عَبْدًا شَكُورًا»

References1 variant
In-Book Reference
Book 4, Hadith 636