Al-Aswad ibn Yazid said that he entered upon Aisha and asked her about the prayer of the Messenger of Allah ﷺ during the night. She said: He used to pray thirteen rak'ahs during the night. Then he began to pray eleven rak'ahs and left two rak'ahs. When he died, he would pray nine rak'ahs during the night. His last prayer during the night was witr.
عَنْ صَلاَةِ رَسُولِ اللَّهِ ﷺ بِاللَّيْلِ فَقَالَتْ كَانَ يُصَلِّي ثَلاَثَ عَشْرَةَ رَكْعَةً مِنَ اللَّيْلِ ثُمَّ إِنَّهُ صَلَّى إِحْدَى عَشْرَةَ رَكْعَةً وَتَرَكَ رَكْعَتَيْنِ ثُمَّ قُبِضَ ﷺ حِينَ قُبِضَ وَهُوَ يُصَلِّي مِنَ اللَّيْلِ تِسْعَ رَكَعَاتٍ وَكَانَ آخِرُ صَلاَتِهِ مِنَ اللَّيْلِ الْوِتْرَ