Sahih Muslim 734
Sahih Muslim · Book 6: The Book of Prayer - Travellers · It is permissible to offer voluntary prayers standing or sitting, and to stand and sit in the same rak`ah
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ ، حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُوسَى ، عَنْ حَسَنِ بْنِ صَالِحٍ ، عَنْ سِمَاكٍ ، قَالَ أَخْبَرَنِي جَابِرُ بْنُ سَمُرَةَ ، أَنَّ النَّبِيَّ صلى الله عليه وسلم لَمْ يَمُتْ حَتَّى صَلَّى قَاعِدًا .
Jabir b. Samura reported that the Messenger of Allah (ﷺ) observed (Nafl) prayer sitting before his death.