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.
bayhaqi:4800[Chain 1] Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-Walīd > al-Ḥasan b. Sufyān > Abū Bakr b. Abū Shaybah > ʿAbdullāh b. Numayr And ʿAbdah [Chain 2] Abū ʿAbdullāh > Abū Bakr b. Isḥāq > al-Ḥasan b. ʿAlī b. Ziyād > Ibrāhīm b. Mūsá > ʿAbdah b. Sulaymān > Hishām b. ʿUrwah from his father > ʿĀʾishah

[Machine] The Messenger of Allah ﷺ used to pray thirteen rak'ahs at night, in which he would perform the witr prayer with five rak'ahs. He would not sit during any of them until he sat in the last one. According to the narration of Ibrahim ibn Musa, he would conclude his prayer with the saying of "as-salamu alaykum" (peace be upon you). In the narration of Abu Bakr, the prayer of the Messenger of Allah ﷺ at night consisted of thirteen rak'ahs, in which he would perform the witr prayer with five rak'ahs. He would not sit during any of them except for the last one.  

البيهقي:٤٨٠٠وَأَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو الْوَلِيدِ ثنا الْحَسَنُ بْنُ سُفْيَانَ ثنا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ ثنا عَبْدُ اللهِ بْنُ نُمَيْرٍ وَعَبْدَةُ ح وَأَخْبَرَنَا أَبُو عَبْدِ اللهِ ثنا أَبُو بَكْرِ بْنُ إِسْحَاقَ أنبأ الْحَسَنُ بْنُ عَلِيِّ بْنِ زِيَادٍ ثنا إِبْرَاهِيمُ بْنُ مُوسَى ثنا عَبْدَةُ بْنُ سُلَيْمَانَ قَالَا ثنا هِشَامُ بْنُ عُرْوَةَ عَنْ أَبِيهِ عَنْ عَائِشَةَ قَالَتْ

كَانَ رَسُولُ اللهِ ﷺ يُصَلِّي ثَلَاثَ عَشْرَةَ رَكْعَةً يُوتِرُ مِنْهَا بِخَمْسٍ وَلَا يَجْلِسُ فِي شَيْءٍ مِنْهَا حَتَّى يَجْلِسَ فِي آخِرِهِنَّ فَيُسَلِّمَ لَفْظُ حَدِيثِ إِبْرَاهِيمَ بْنِ مُوسَى وَفِي رِوَايَةِ أَبِي بَكْرٍ كَانَتْ صَلَاةُ رَسُولِ اللهِ ﷺ بِاللَّيْلِ ثَلَاثَ عَشْرَةَ رَكْعَةً يُوتِرُ مِنْ ذَلِكَ بِخَمْسٍ لَا يَجْلِسُ فِي شَيْءٍ مِنْهَا إِلَّا فِي آخِرِهَا  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ أَبِي بَكْرِ بْنِ أَبِي شَيْبَةَ