[Machine] Ali said: "There are three types of Witr prayer. Whoever wants to perform the first part of the night Witr, they should pray Witr and then wake up to pray a variation of Rak'ah (unit of prayer) and perform two more Rak'ahs until morning. Then they should perform Witr. And if they wish, they can pray two Rak'ahs until morning. And if they wish, they can perform the last part of the night Witr."
قَالَ عَلِيٌّ ؓ الْوِتْرُ ثَلَاثَةُ أَنْوَاعٍ فَمَنْ شَاءَ أَنْ يُوتِرَ أَوَّلَ اللَّيْلِ أَوْتَرَ ثُمَّ اسْتَيْقَظَ فَشَاءَ أَنْ يَشْفَعَهَا بِرَكْعَةٍ وَيُصَلِّي رَكْعَتَيْنِ رَكْعَتَيْنِ حَتَّى يُصْبِحَ ثُمَّ يُوتِرَ فَعَلَ وَإِنْ شَاءَ صَلَّى رَكْعَتَيْنِ رَكْعَتَيْنِ حَتَّى يُصْبِحَ وَإِنْ شَاءَ أَوْتَرَ آخِرَ اللَّيْلِ