[Machine] The Prophet ﷺ used to pray eight rak'ahs after the last Isha prayer, then he would perform "wittr" prayer. After that, he would pray two rak'ahs in which he would recite while sitting. When he wanted to perform the next rak'ah, he would stand up and pray, and then he would pray two rak'ahs after that for the Fajr prayer.
أَنَّ النَّبِيَّ ﷺ كَانَ «يُصَلِّي بَعْدَ الْعِشَاءِ الْآخِرَةِ ثَمَانِيَ رَكَعَاتٍ ثُمَّ يُوتِرُ ثُمَّ يُصَلِّي رَكْعَتَيْنِ يُقْرَأُ فِيهِمَا وَهُوَ جَالِسٌ فَإِذَا أَرَادَ أَنْ يَرْكَعَ قَامَ فَرَكَعَ ثُمَّ رَكَعَ بَعْدَ ذَلِكَ رَكْعَتَيِ الْفَجْرِ»