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.
muslim:749dAbū al-Rabīʿ al-Zahrānī > Ḥammād > Ayyūb And Budayl > ʿAbdullāh b. Shaqīq > ʿAbdullāh b. ʿUmar

A person asked the Messenger of Allah ﷺ as I stood between him (the Holy Prophet) and the inquirer and he said: Messenger of Allah, how is the night prayer? He (the Holy Prophet) said: It consists of pairs of rak'ahs, but if you apprehend morning, you should pray one rak'ah and make the end of your prayer as Witr. Then a person asked him (the Holy Prophet) at the end of the year and I was at that place near the Messenger of Allah ﷺ ; but I do not know whether he was the same person or another person, but he (the Holy Prophet) gave him the same reply.  

مسلم:٧٤٩dوَحَدَّثَنِي أَبُو الرَّبِيعِ الزَّهْرَانِيُّ حَدَّثَنَا حَمَّادٌ حَدَّثَنَا أَيُّوبُ وَبُدَيْلٌ عَنْ عَبْدِ اللَّهِ بْنِ شَقِيقٍ عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ

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


See similar narrations below:

Collected by Bayhaqī
bayhaqi:4830Abū al-Ḥasan ʿAlī b. Muḥammad al-Muqriʾ > al-Ḥasan b. Muḥammad b. Isḥāq > Yūsuf b. Yaʿqūb al-Qāḍī > Abū al-Rabīʿ > Ḥammād b. Zayd > Ayyūb And Budayl b. Maysarah > ʿAbdullāh b. Shaqīq > Ibn ʿUmar

A person asked the Messenger of Allah ﷺ as I stood between him (the Holy Prophet) and the inquirer and he said: Messenger of Allah, how is the night prayer? He (the Holy Prophet) said: It consists of pairs of rak'ahs, but if you apprehend morning, you should pray one rak'ah and make the end of your prayer as Witr. Then a person asked him (the Holy Prophet) at the end of the year and I was at that place near the Messenger of Allah ﷺ ; but I do not know whether he was the same person or another person, but he (the Holy Prophet) gave him the same reply. (Using translation from Muslim 749d)   

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

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

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