Hadith 38

Sahih Bukhari

Book 18: Shortening the Prayers (At-Taqseer)

Chapter 20

Whoever starts his Salat sitting (because of ailment) and then during the Salat (prayer) feels better, can finish the rest while standing

باب إِذَا صَلَّى قَاعِدًا ثُمَّ صَحَّ أَوْ وَجَدَ خِفَّةً تَمَّمَ مَا بَقِيَ

Al-Hasan said, “If the sick person wishes he can offer two Rak'a while standing and two Rak'a while sitting.” ​​
وَقَالَ الْحَسَنُ إِنْ شَاءَ الْمَرِيضُ صَلَّى رَكْعَتَيْنِ قَائِمًا وَرَكْعَتَيْنِ قَاعِدًا.
Sahih al-Bukhari 1118
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، قَالَ أَخْبَرَنَا مَالِكٌ، عَنْ هِشَامِ بْنِ عُرْوَةَ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ ـ رضى الله عنها ـ أُمِّ الْمُؤْمِنِينَ أَنَّهَا أَخْبَرَتْهُ أَنَّهَا لَمْ تَرَ رَسُولَ اللَّهِ صلى الله عليه وسلم يُصَلِّي صَلاَةَ اللَّيْلِ قَاعِدًا قَطُّ حَتَّى أَسَنَّ، فَكَانَ يَقْرَأُ قَاعِدًا حَتَّى إِذَا أَرَادَ أَنْ يَرْكَعَ قَامَ، فَقَرَأَ نَحْوًا مِنْ ثَلاَثِينَ آيَةً أَوْ أَرْبَعِينَ آيَةً، ثُمَّ رَكَعَ‏.‏
Aisha:

(the mother of the faithful believers) I never saw Allah's Messenger (ﷺ) offering the night prayer while sitting except in his old age and then he used to recite while sitting and whenever he wanted to bow he would get up and recite thirty or forty verses (while standing) and then bow.