Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
nasai:1704Muḥammad b. Rāfiʿ > Muʿāwiyah b. Hishām > Sufyān > Ḥabīb b. Abū Thābit > Muḥammad b. ʿAlī from his father from his grandfather

The Prophet ﷺ got up at night and cleaned his teeth, then he prayed two rak'ahs, then he slept. Then he got up and cleaned his teeth, then he performed wudu and prayed two rak'ahs, until he had prayed six. Then he prayed witr with three rak'ahs, and prayed two rak'ahs.  

النسائي:١٧٠٤أَخْبَرَنَا مُحَمَّدُ بْنُ رَافِعٍ قَالَ حَدَّثَنَا مُعَاوِيَةُ بْنُ هِشَامٍ قَالَ حَدَّثَنَا سُفْيَانُ عَنْ حَبِيبِ بْنِ أَبِي ثَابِتٍ عَنْ مُحَمَّدِ بْنِ عَلِيٍّ عَنْ أَبِيهِ عَنْ جَدِّهِ

عَنِ النَّبِيِّ ﷺ أَنَّهُ قَامَ مِنَ اللَّيْلِ فَاسْتَنَّ ثُمَّ صَلَّى رَكْعَتَيْنِ ثُمَّ نَامَ ثُمَّ قَامَ فَاسْتَنَّ ثُمَّ تَوَضَّأَ فَصَلَّى رَكْعَتَيْنِ حَتَّى صَلَّى سِتًّا ثُمَّ أَوْتَرَ بِثَلاَثٍ وَصَلَّى رَكْعَتَيْنِ  


See similar narrations below:

Collected by Aḥmad
ahmad:3271Muʿāwiyah b. Hishām > Sufyān > Ḥabīb b. Abū Thābit > Muḥammad b. ʿAlī from his father from his grandfather

The Prophet ﷺ got up at night and cleaned his teeth, then he prayed two rak'ahs, then he slept. Then he got up and cleaned his teeth, then he performed wudu and prayed two rak'ahs, until he had prayed six. Then he prayed witr with three rak'ahs, and prayed two rak'ahs. (Using translation from Nasāʾī 1704)  

أحمد:٣٢٧١حَدَّثَنَا مُعَاوِيَةُ بْنُ هِشَامٍ حَدَّثَنَا سُفْيَانُ عَنْ حَبِيبِ بْنِ أَبِي ثَابِتٍ عَنْ مُحَمَّدِ بْنِ عَلِيٍّ عَنْ أَبِيهِ عَنْ جَدِّهِ

عَنِ النَّبِيِّ ﷺ أَنَّهُ قَامَ مِنَ اللَّيْلِ فَاسْتَنَّ ثُمَّ صَلَّى رَكْعَتَيْنِ ثُمَّ نَامَ ثُمَّ قَامَ فَاسْتَنَّ وَتَوَضَّأَ وَصَلَّى رَكْعَتَيْنِ حَتَّى صَلَّى سِتًّا ثُمَّ أَوْتَرَ بِثَلَاثٍ وَصَلَّى رَكْعَتَيْنِ