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:4676[Chain 1] Muḥammad b. ʿAbdullāh al-Ḥāfiẓ > Abū ʿAbdullāh Muḥammad b. ʿAbdullāh al-Ṣaffār > Aḥmad b. Mihrān al-Aṣbahānī > ʿUbaydullāh b. Mūsá > Ḥanẓalah b. Abū Sufyān [Chain 2] Aḥmad b. Jaʿfar > ʿAbdullāh b. Aḥmad from my father > ʿAbdullāh b. Numayr > Ḥanẓalah > al-Qāsim > ʿĀʾishah

[Machine] The Messenger of Allah ﷺ used to pray ten Rak'ahs at night and he would perform Witr with a prostration, and he would perform two prostrations for Fajr, so that makes thirteen Rak'ahs.  

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

كَانَ رَسُولُ اللهِ ﷺ يُصَلِّي مِنَ اللَّيْلِ عَشْرَ رَكَعَاتٍ وَيُوتِرُ بِسَجْدَةٍ وَيَسْجُدُ سَجْدَتَيْنِ لِلْفَجْرِ فَتِلْكَ ثَلَاثَ عَشْرَةَ رَكْعَةً  

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

See similar narrations below:

Collected by Abū Dāwūd, Bayhaqī
abudawud:1334Ibn al-Muthanná > Ibn Abū ʿAdī > Ḥanẓalah > al-Qāsim b. Muḥammad > ʿĀʾishah

The Messenger of Allah ﷺ used to pray ten rak'ahs during the night, and would observe the witr with one rak'ah, he then prayed two rak'ahs of the dawn prayer. Thus he prayed thirteen rak'ahs in all.  

أبو داود:١٣٣٤حَدَّثَنَا ابْنُ الْمُثَنَّى حَدَّثَنَا ابْنُ أَبِي عَدِيٍّ عَنْ حَنْظَلَةَ عَنِ الْقَاسِمِ بْنِ مُحَمَّدٍ عَنْ عَائِشَةَ قَالَتْ

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

bayhaqi:4675Abū Ṭāhir al-Faqīh And ʾAbū ʿAbdullāh al-Ḥāfiẓ Waʾabū Saʿīd b. Abū ʿAmr Waʾabū Muḥammad b. ʿUbayd b. Muḥammad b. Mahdī > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Muḥammad b. ʿAlī al-Warrāq > ʿUbaydullāh b. Mūsá > Ḥanẓalah > al-Qāsim b. Muḥammad > ʿĀʾishah

The Prophet ﷺ used to offer thirteen rakʿat of the night prayer and that included the witr and two rakʿat (Sunna) of the Fajr prayer. (Using translation from Bukhārī 1140)   

البيهقي:٤٦٧٥أَخْبَرَنَا أَبُو طَاهِرٍ الْفَقِيهُ وَأَبُو عَبْدِ اللهِ الْحَافِظُ وَأَبُو سَعِيدِ بْنُ أَبِي عَمْرٍو وَأَبُو مُحَمَّدِ بْنُ عُبَيْدِ بْنِ مُحَمَّدِ بْنِ مَهْدِيٍّ قَالُوا ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا مُحَمَّدُ بْنُ عَلِيٍّ الْوَرَّاقُ ثنا عُبَيْدُ اللهِ بْنُ مُوسَى أنبأ حَنْظَلَةُ عَنِ الْقَاسِمِ بْنِ مُحَمَّدٍ عَنْ عَائِشَةَ قَالَتْ

كَانَ رَسُولُ اللهِ ﷺ يُصَلِّي مِنَ اللَّيْلِ ثَلَاثَ عَشْرَةَ رَكْعَةً مِنْهَا الْوِتْرُ وَرَكْعَتَا الْفَجْرِ  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ عُبَيْدِ اللهِ بْنِ مُوسَى