[Machine] The Messenger of Allah ﷺ used to perform nine rak'ahs of Witr. But when it was close to the time of Fajr, he would perform seven rak'ahs. He would then perform an additional two rak'ahs while sitting. (Hadith narrated by Muhammad ibn Bashshar, from Al-Hajjaj, from Hammad, from Humaid, from Bakr, from Sa'd ibn Hisham, from Aisha, from the Prophet ﷺ , with a similar narration.)
أَنَّ رَسُولَ اللهِ ﷺ كَانَ «يُوتِرُ بِتِسْعِ رَكَعَاتٍ فَلَمَّا لَحُمَ أَوْتَرَ بِسَبْعٍ وَرَكَعَ رَكْعَتَيْنِ وَهُوَ جَالِسٌ» 1415 أَخْبَرَنَا مُحَمَّدُ بْنُ بَشَّارٍ قَالَ حَدَّثَنَا الْحَجَّاجُ قَالَ حَدَّثَنَا حَمَّادٌ عَنْ حُمَيْدٍ عَنْ بَكْرٍ عَنْ سَعْدِ بْنِ هِشَامٍ عَنْ عَائِشَةَ عَنِ النَّبِيِّ ﷺ مِثْلِهِ