كتاب صلاة المسافرين وقصرها
6  
The Book of Prayer - Travellers
(20)
Chapter: The night prayers are two by two, and Witr is one rakah at the end of the night
(20)
باب صَلاَةُ اللَّيْلِ مَثْنَى مَثْنَى وَالْوِتْرُ رَكْعَةٌ مِنْ آخِرِ اللَّيْلِ ‏
Sahih Muslim 749 c

'Abdullah b. 'Umar reported:

A man stood up and said. Messenger of Allah, how is the night prayer? The Messenger of Allah (ﷺ) said: The night prayer consists of pair, but if you apprehend the rise of dawn, make it odd number by observing one rak'ah.
وَحَدَّثَنِي حَرْمَلَةُ بْنُ يَحْيَى، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ وَهْبٍ، أَخْبَرَنِي عَمْرٌو، أَنَّ ابْنَ شِهَابٍ، حَدَّثَهُ أَنَّ سَالِمَ بْنَ عَبْدِ اللَّهِ بْنِ عُمَرَ وَحُمَيْدَ بْنَ عَبْدِ الرَّحْمَنِ بْنِ عَوْفٍ حَدَّثَاهُ عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ بْنِ الْخَطَّابِ، أَنَّهُ قَالَ قَامَ رَجُلٌ فَقَالَ يَا رَسُولَ اللَّهِ كَيْفَ صَلاَةُ اللَّيْلِ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ صَلاَةُ اللَّيْلِ مَثْنَى مَثْنَى فَإِذَا خِفْتَ الصُّبْحَ فَأَوْتِرْ بِوَاحِدَةٍ ‏"‏ ‏.‏
Reference : Sahih Muslim 749c
In-book reference : Book 6, Hadith 179
USC-MSA web (English) reference : Book 4, Hadith 1634
  (deprecated numbering scheme)