It was narrated that 'Aishah said:"The Messenger of Allah (ﷺ) used to pray nine (rak'ahs) at night, then when he grew older and put on weight he prayed seven."
أَخْبَرَنَا أَحْمَدُ بْنُ سُلَيْمَانَ، قَالَ حَدَّثَنَا حُسَيْنٌ، عَنْ زَائِدَةَ، عَنْ سُلَيْمَانَ، عَنْ عُمَارَةَ بْنِ عُمَيْرٍ، عَنْ يَحْيَى بْنِ الْجَزَّارِ، عَنْ عَائِشَةَ، قَالَتْ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يُصَلِّي مِنَ اللَّيْلِ تِسْعًا فَلَمَّا أَسَنَّ وَثَقُلَ صَلَّى سَبْعًا .
Nesai
The Book of Qiyam Al-Lail (The Night Prayer) and Voluntary Prayers During the Day • Hadith 1709