[Machine] The Messenger of Allah ﷺ used to lie down, and when he woke up, he would rinse his mouth with water (Miswak), then perform ablution (Wudu), then pray eight units of prayer. He would sit after every two units and make the Tasleem (saying "As-salamu alaykum" to end the prayer), then he would pray five units of Witr prayer. He would not sit except in the fifth unit, and he would not make the Tasleem except in the fifth unit, and he would repeat this process.
أَنَّ رَسُولَ اللهِ ﷺ كَانَ يَرْقُدُ فَإِذَا اسْتَيْقَظَ تَسَوَّكَ ثُمَّ تَوَضَّأَ ثُمَّ صَلَّى ثَمَانِ رَكَعَاتٍ يَجْلِسُ فِي كُلِّ رَكْعَتَيْنِ وَيُسَلِّمُ ثُمَّ يُوتِرُ بِخَمْسِ رَكَعَاتٍ لَا يَجْلِسُ إِلَّا فِي الْخَامِسَةِ وَلَا يُسَلِّمُ إِلَّا فِي الْخَامِسَةِ وَهَكَذَا