Sahih al-Bukhari 1130
Sahih al-Bukhari · Book 19: Prayer at Night (Tahajjud) · Standing of the Prophet (pbuh) at night
Narrated Al-Mughira:
حَدَّثَنَا أَبُو نُعَيْمٍ ، قَالَ حَدَّثَنَا مِسْعَرٌ ، عَنْ زِيَادٍ ، قَالَ سَمِعْتُ الْمُغِيرَةَ ـ رضى الله عنه ـ يَقُولُ إِنْ كَانَ النَّبِيُّ صلى الله عليه وسلم لَيَقُومُ لِيُصَلِّيَ حَتَّى تَرِمُ قَدَمَاهُ أَوْ سَاقَاهُ، فَيُقَالُ لَهُ فَيَقُولُ " أَفَلاَ أَكُونُ عَبْدًا شَكُورًا " .
The Prophet (ﷺ) used to stand (in the prayer) or pray till both his feet or legs swelled. He was asked why (he offered such an unbearable prayer) and he said, "should I not be a thankful slave."