(20) باب صَلاَةُ اللَّيْلِ مَثْنَى مَثْنَى وَالْوِتْرُ رَكْعَةٌ مِنْ آخِرِ اللَّيْلِ
Ibn 'Umar reported:
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.
Reference: Sahih Muslim 749 f
In-book reference: Book 6, Hadith 189
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1644