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.
bukhari:473Abū al-Nuʿmān > Ḥammād > Ayyūb > Nāfiʿ > Ibn ʿUmar

A man came to the Prophet ﷺ while he was delivering the sermon and asked him how to offer the night prayers. The Prophet ﷺ replied, 'Pray two rakʿat at a time and then two and then two and so on and if you are afraid of dawn (the approach of the time of the Fajr prayer) pray one rakʿa and that will be the witr for all the rakʿat which you have prayed." Narrated 'Ubaidullah bin ʿAbdullah bin ʿUmar: A man called the Prophet ﷺ while he was in the mosque.  

البخاري:٤٧٣حَدَّثَنَا أَبُو النُّعْمَانِ قَالَ حَدَّثَنَا حَمَّادٌ عَنْ أَيُّوبَ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ

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


See similar narrations below:

Collected by Muslim
muslim:749fAbū Kurayb And Hārūn b. ʿAbdullāh > Abū Usāmah > al-Walīd b. Kathīr > ʿUbaydullāh b. ʿAbdullāh b. ʿUmar > Ibn ʿUmar

A person called (the attention) of the Messenger of Allah ﷺ as he was in the mosque, and said: Messenger of Allah, how should I make the rak'ahs of the night prayer an odd number? Upon this the Messenger of Allah (may peace he upon him) said: He who prays (night prayer) he should observe it in pairs, but if he apprehends the rise of morning, he should observe one rak'ah; that would make the number odd (for the rak'ahs) observed by him. This was narrated by Abu Kuraib 'Ubaidullah b. 'Abdullah and Ibn 'Umar did not make mention of it.  

مسلم:٧٤٩fوَحَدَّثَنَا أَبُو كُرَيْبٍ وَهَارُونُ بْنُ عَبْدِ اللَّهِ قَالاَ حَدَّثَنَا أَبُو أُسَامَةَ عَنِ الْوَلِيدِ بْنِ كَثِيرٍ قَالَ حَدَّثَنِي عُبَيْدُ اللَّهِ بْنُ عَبْدِ اللَّهِ بْنِ عُمَرَ أَنَّ ابْنَ عُمَرَ حَدَّثَهُمْ

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